fix corejs import with external lib
This commit is contained in:
parent
928dab41e8
commit
a8a5a0a3f1
@ -122,7 +122,10 @@ const config: Configuration = {
|
|||||||
},
|
},
|
||||||
entry: getScriptsEntryObject(),
|
entry: getScriptsEntryObject(),
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".ts", ".js"],
|
extensions: [".ts", ".js", ".mjs"],
|
||||||
|
// Explicitly define where node_modules is in this project for corejs imports
|
||||||
|
// See: https://stackoverflow.com/a/62129649
|
||||||
|
modules: [path.resolve(__dirname, "node_modules")],
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: "[name].js",
|
filename: "[name].js",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user