diff --git a/webpack.config.js b/webpack.config.js index 9866102414..fec1935767 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: [