Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
add extension to relative imports to make the code work directly in a…
Browse files Browse the repository at this point in the history
… browser

relative imports require the full path including the extension because browsers use the import name to make a network request and they do not implicitly add a .js file extension if one is missing
  • Loading branch information
JakeChampion committed Sep 4, 2020
1 parent 249855f commit 8f2b9c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/delegate.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */
/* global proclaim sinon */
import Delegate from '../main';
import Delegate from '../main.js';

const setupHelper = {};

Expand Down
2 changes: 1 addition & 1 deletion test/scroll.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env mocha */
/* global proclaim sinon */
import Delegate from '../main';
import Delegate from '../main.js';

describe("Delegate", () => {

Expand Down

0 comments on commit 8f2b9c6

Please # to comment.