Skip to content

Commit fc975c8

Browse files
committed
fix(rollupconfig): add itee-validators as dependencies for all bundle
This allow dependents package to correctly resolve the itee-validators package and perform better tree shaking.
1 parent dc08a99 commit fc975c8

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

configs/rollup.conf.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,9 @@ function CreateRollupConfigs ( options ) {
8585
const outputPath = ( isProd ) ? path.join( output, `${fileName}.${format}.min.js` ) : path.join( output, `${fileName}.${format}.js` )
8686

8787
configs.push( {
88-
input: input,
89-
external: ( format === 'cjs' ) ? [
90-
'fs',
91-
'path'
92-
] : [],
93-
plugins: [
88+
input: input,
89+
external: ( format === 'cjs' ) ? [ 'fs', 'path', 'itee-validators' ] : [ 'itee-validators' ],
90+
plugins: [
9491
replace( {
9592
defines: {
9693
IS_REMOVE_ON_BUILD: false,

0 commit comments

Comments
 (0)