mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
don't bundle anything for npm
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user