We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building a tree shaking package using rollup.
slideEffect: false
package.json
"sideEffects": false,
esm
export default { input: ["src/*.ts"], output: { dir: pkg.module, format: "esm", }, plugins: [commonjs(), typescript(), resolve(), multiInput()], };
import { foo } from "@chen86860/rollup-esm-template"; foo();
For that, the bar function in @chen86860/rollup-esm-template will not build into bundle by tree shaking.
bar
@chen86860/rollup-esm-template
Related repository: rollup-esm-template
The text was updated successfully, but these errors were encountered:
No branches or pull requests
rollup-esm-template
Building a tree shaking package using rollup.
Requirements
slideEffect: false
flag inpackage.json
esm
Usage
For that, the
bar
function in@chen86860/rollup-esm-template
will not build into bundle by tree shaking.Related repository: rollup-esm-template
The text was updated successfully, but these errors were encountered: