[CHORE] Remove elkjs hack
This commit is contained in:
parent
ed29b9e423
commit
4575b58da3
1 changed files with 1 additions and 10 deletions
|
@ -38,9 +38,8 @@ if (isProduction) {
|
||||||
production: true,
|
production: true,
|
||||||
onlyAllow: 'Apache-2.0; 0BSD; BSD-2-Clause; BSD-3-Clause; BlueOak-1.0.0; MIT; ISC; Unlicense; CC-BY-4.0',
|
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.
|
// 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
|
// 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) => {
|
}, (err, dependencies) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
|
@ -108,14 +107,6 @@ const filterCssImport = (url, ...args) => {
|
||||||
|
|
||||||
/** @type {import("webpack").Configuration} */
|
/** @type {import("webpack").Configuration} */
|
||||||
export default {
|
export default {
|
||||||
externals: [
|
|
||||||
function ({request}, callback) {
|
|
||||||
if (/elkjs/.test(request)) {
|
|
||||||
return callback(null, `commonjs ${request}`);
|
|
||||||
}
|
|
||||||
callback();
|
|
||||||
},
|
|
||||||
],
|
|
||||||
mode: isProduction ? 'production' : 'development',
|
mode: isProduction ? 'production' : 'development',
|
||||||
entry: {
|
entry: {
|
||||||
index: [
|
index: [
|
||||||
|
|
Loading…
Add table
Reference in a new issue