kopia lustrzana https://github.com/shoelace-style/shoelace
don't bundle anything for npm
rodzic
d18db9adfa
commit
47018d61cd
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue