aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-20 19:21:21 +0200
committerVen <vendicated@riseup.net>2022-10-20 20:23:14 +0200
commitc80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1 (patch)
treefe3d55df57cd945a71000f197b3eed9842e1833c /scripts
parent50047dd3c22c9b3754684e4d21f7aeeff25dbd79 (diff)
downloadVencord-c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1.tar.gz
Vencord-c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1.tar.bz2
Vencord-c80ed1b824b9f0b8aab8103cbde5e9b1f2c951c1.zip
legal: Make esbuild generate & link licensing information
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/common.mjs5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs
index deb8ff4..0def0c2 100644
--- a/scripts/build/common.mjs
+++ b/scripts/build/common.mjs
@@ -13,7 +13,8 @@ export const commonOpts = {
bundle: true,
watch,
minify: !watch,
- sourcemap: watch ? "inline" : ""
+ sourcemap: watch ? "inline" : "",
+ legalComments: "linked"
};
// https://github.com/evanw/esbuild/issues/619#issuecomment-751995294
@@ -23,7 +24,7 @@ export const commonOpts = {
export const makeAllPackagesExternalPlugin = {
name: "make-all-packages-external",
setup(build) {
- let filter = /^[^.\/]|^\.[^.\/]|^\.\.[^\/]/; // Must not start with "/" or "./" or "../"
+ const filter = /^[^./]|^\.[^./]|^\.\.[^/]/; // Must not start with "/" or "./" or "../"
build.onResolve({ filter }, args => ({ path: args.path, external: true }));
},
};