Skip to content

Commit

Permalink
auspice-client: Append extension on ESM imports
Browse files Browse the repository at this point in the history
This is necessary for Webpack 5, which resolves paths as fully
specified.
  • Loading branch information
victorlin committed Nov 23, 2022
1 parent 9715b85 commit db44043
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auspice-client/customisations/languageSelector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react"; // eslint-disable-line
import ISO6391 from "iso-639-1/build/index";
import ISO6391 from "iso-639-1/build/index.js";

/* This and some of the following functions are reused
in the static site (specifically ../../static-site/src/pages/ncov-sit-reps.jsx)
Expand Down
2 changes: 1 addition & 1 deletion auspice-client/customisations/navbar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-multi-spaces */
import React from "react"; // eslint-disable-line
import LanguageSelector from "./languageSelector";
import LanguageSelector from "./languageSelector.js";

const logoPNG = require("./nextstrain-logo-small.png");

Expand Down
4 changes: 2 additions & 2 deletions auspice-client/customisations/splash.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, {useState, useEffect} from "react"; // eslint-disable-line
import styled from 'styled-components'; // eslint-disable-line
import MarkdownDisplay from "auspice/src/components/markdownDisplay";
import NavBar from "./navbar";
import MarkdownDisplay from "auspice/src/components/markdownDisplay/index.js";
import NavBar from "./navbar.js";


/**
Expand Down

0 comments on commit db44043

Please sign in to comment.