From 59fb8db6beca8c217631528985a5a8519c5e98ee Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 8 Oct 2021 16:52:01 -0400 Subject: [PATCH] unbundle select deps --- scripts/build.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 46cc456e..aea8c950 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -10,9 +10,6 @@ import glob from 'globby'; import path from 'path'; import { execSync } from 'child_process'; -const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8')); -const externalDependencies = Object.keys(packageData.dependencies); - const build = esbuild.build; const bs = browserSync.create(); const { dev } = commandLineArgs({ name: 'dev', type: Boolean }); @@ -53,7 +50,7 @@ try { // Popper.js expects this to be set 'process.env.NODE_ENV': '"production"' }, - external: dev ? undefined : externalDependencies, + external: ['@popperjs/core', '@shoelace-style/animations', 'lit', 'qr-creator'], bundle: true, splitting: true, plugins: []