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 with strictDeprecations: 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)