Rollup v2.57.0 Release Notes
-
2021-09-22
๐ Features
- โ Add
generatedCode
option to allow Rollup to use es2015 features for smaller output and more efficient helpers (#4215) - ๐ Improve AMD and SystemJS parsing performance by wrapping relevant functions in parentheses (#4215)
- ๐ Using
preferConst
will now show a warning withstrictDeprecations: true
(#4215)
๐ Bug Fixes
- ๐ Improve ES3 syntax compatibility by more consequently quoting reserved words as props in generated code (#4215)
- Do not use
Object.assign
in generated code to ensure ES5 compatibility without the need for polyfills (#4215) - ๐ Support live-bindings in dynamic namespace objects that contain reexported external or synthetic namespaces (#4215)
- ๐ Use correct "this" binding in dynamic import expressions for CommonJS and AMD (#4215)
- Properly handle
shimMissingExports
for exports that are only used internally (#4215) - ๐ Prevent unhandled rejection for failed module parsing (#4228)
Pull Requests
- ๐ #4212: chore: remove unused ambient types (@dnalborczyk)
- #4215: Use ES2015 features in generated code snippets (@lukastaegert)
- ๐ #4219: chore: bump rollup typescript, remove unused micromatch (@dnalborczyk)
- #4220: chore: use forceConsistentCasingInFileNames in ts-config (@dnalborczyk)
- #4224: prepare for useDefineForClassFields (@dnalborczyk)
- โ #4228: fix: prevent UnhandledPromiseRejectionWarning when module resolution/parsing fails (@kherock)
- โ Add