mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
Merge pull request '[CHORE] Don't bundle elkjs
' (#4670) from gusted/forgejo-elkjs into forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4670 Reviewed-by: Beowulf <beowulf@noreply.codeberg.org> Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
56dbe3263f
|
@ -108,6 +108,14 @@ 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…
Reference in a new issue