Based on rollup-starter-app
This repo reproduces the problem where a file defined in sideEffects
of package.json
gets excluded from the bundle when using @rollup/plugin-node-resolve
.
The file polyfill/sideEffect.js
will be present in the bundle in case:
sideEffects
is removed from package.json or set totrue
- Omit the use of plugin
@rollup/plugin-node-resolve
from the rollup build