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 3b0b28e commit 9814d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/main.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-env mocha */
/* global proclaim sinon */

import * as Utils from './../main';
import * as Utils from './../main.js';

describe("getIndex()", function() {

Expand Down

0 comments on commit 9814d2a

Please sign in to comment.