mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01:00
[CHORE] Remove elkjs hack
This commit is contained in:
parent
ed29b9e423
commit
4575b58da3
|
@ -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: [
|
||||
|
|
Loading…
Reference in a new issue