Skip to content

Commit d591080

Browse files
committed
Ignore optional deps.
1 parent c01dcd2 commit d591080

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rollup.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ const writePackage = (json, to) => ({
2929
devDependencies,
3030
eslintConfig,
3131
jest,
32+
optionalDependencies,
3233
scripts,
3334
...output
3435
} = json;
36+
// Short circuit with assignment above.
3537
delete output.babel;
3638
fs.writeFileSync(path.resolve(to), JSON.stringify(output));
3739
},

0 commit comments

Comments
 (0)