Skip to content

Commit 5788159

Browse files
committed
[javascript] Add '.js' extension to relative module imports
This is apparently a recent change in the ES6 spec: google/traceur-compiler#1221 google/traceur-compiler#1692
1 parent 34748ad commit 5788159

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

biconnected_components/javascript/biconnected_components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {AdjacencyList} from './adjacency_list';
1+
import {AdjacencyList} from './adjacency_list.js';
22

33
export function articulations(graph) {
44
if (graph.directed) {

biconnected_components/javascript/biconnected_components_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const assert = require('assert');
22

3-
import {articulations} from './biconnected_components';
3+
import {articulations} from './biconnected_components.js';
44

55
const tests = [
66
{

connected_components/javascript/connected_components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {AdjacencyList} from './adjacency_list';
1+
import {AdjacencyList} from './adjacency_list.js';
22

33
export function connectedComponents(graph) {
44
if (graph.directed) {

connected_components/javascript/connected_components_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const assert = require('assert');
22

3-
import {connectedComponents} from './connected_components';
3+
import {connectedComponents} from './connected_components.js';
44

55
const tests = [
66
{

0 commit comments

Comments
 (0)