diff --git a/webpack.config.js b/webpack.config.js index 986610241..fec193576 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -108,6 +108,14 @@ const filterCssImport = (url, ...args) => { /** @type {import("webpack").Configuration} */ export default { + externals: [ + function ({request}, callback) { + if (/elkjs/.test(request)) { + return callback(null, `commonjs ${request}`); + } + callback(); + }, + ], mode: isProduction ? 'production' : 'development', entry: { index: [