Skip to content

Commit

Permalink
fix(ci): inline @kaokei/di
Browse files Browse the repository at this point in the history
  • Loading branch information
kaokei committed Jun 30, 2021
1 parent 13379e1 commit 7ced072
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,16 @@ function createConfig(fileSuffix) {

let entryFile = `src/index.ts`;

// 强制打包的npm包
const inlineDependencies = ['@kaokei/di'];

// 这样写意味着不会打包任何npm包了
let external = [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.devDependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
...['path', 'url', 'stream', 'fs', 'os'],
];
].filter(dep => !inlineDependencies.includes(dep));

const minifyPlugins = isProductionBuild
? [createMinifyPlugin(isESBuild)]
Expand Down

0 comments on commit 7ced072

Please sign in to comment.