From 4575b58da3a3d98abf1031911c372bd04a58c726 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 24 Aug 2024 22:13:16 +0200 Subject: [PATCH] [CHORE] Remove elkjs hack --- webpack.config.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index d1df838f6a..09fd962c1f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -38,9 +38,8 @@ if (isProduction) { production: true, onlyAllow: 'Apache-2.0; 0BSD; BSD-2-Clause; BSD-3-Clause; BlueOak-1.0.0; MIT; ISC; Unlicense; CC-BY-4.0', // argparse@2.0.1 - Python-2.0. It's used in the CLI file of markdown-it and js-yaml and not in the library code. - // elkjs@0.9.3 - EPL-2.0. See https://github.com/mermaid-js/mermaid/pull/5654 // idiomorph@0.3.0. See https://github.com/bigskysoftware/idiomorph/pull/37 - excludePackages: 'argparse@2.0.1;elkjs@0.9.3;idiomorph@0.3.0', + excludePackages: 'argparse@2.0.1;idiomorph@0.3.0', }, (err, dependencies) => { if (err) { throw err; @@ -108,14 +107,6 @@ 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: [