mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 09:54:24 +01:00
Merge pull request '[v8.0/forgejo] [CHORE] Don't bundle elkjs
' (#4680) from bp-v8.0/forgejo-510cbe2 into v8.0/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4680 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
4819c83a5c
|
@ -73,6 +73,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: [
|
||||
|
|
Loading…
Reference in a new issue