From 47018d61cd82b5f6ca3bf532ba92eb9003074a5c Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 12 Jun 2023 15:32:45 -0400 Subject: [PATCH] don't bundle anything for npm --- scripts/build.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index 7daa28fe..41926694 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -72,15 +72,12 @@ async function buildTheDocs(watch = false) { // async function buildTheSource() { const alwaysExternal = ['@lit-labs/react', 'react']; - const packageJSON = await fs.readFile('./package.json'); const dependencies = [ ...Object.keys(packageJSON.dependencies || {}), ...Object.keys(packageJSON.peerDependencies || {}) ]; - const allExternal = [...alwaysExternal, ...dependencies]; - const cdnConfig = { format: 'esm', target: 'es2017', @@ -124,7 +121,7 @@ async function buildTheSource() { const npmConfig = { ...cdnConfig, - external: allExternal, + bundle: false, outdir };