Skip to content

Commit

Permalink
Fix issue with .mjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter de Vos committed Sep 21, 2018
1 parent f79f4c0 commit a671926
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/webpack/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ export default (_ssr: boolean /* <-- not currently used */) => {
},
],
},
{
include: /node_modules/,
test: /\.mjs$/,
type: "javascript/auto",
},
],
},

Expand All @@ -98,7 +103,7 @@ export default (_ssr: boolean /* <-- not currently used */) => {
alias: {
"@": path.resolve(root, "src"),
},
extensions: [".ts", ".tsx", ".js"],
extensions: [".ts", ".tsx", ".webpack.js", ".web.js", ".mjs", ".js"],
modules: [
path.resolve(root, "node_modules"),
],
Expand Down

0 comments on commit a671926

Please sign in to comment.