fix corejs import with external lib

This commit is contained in:
Joseph HENRY 2025-11-19 18:36:58 +01:00
parent 928dab41e8
commit a8a5a0a3f1

View File

@ -122,7 +122,10 @@ const config: Configuration = {
},
entry: getScriptsEntryObject(),
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: {
filename: "[name].js",