Parcel v2.6.0 Release Notes

Release Date: 2022-05-25 // about 1 month ago
  • โž• Added

    • โž• Add React error overlay to display pretty runtime errors like Create React App - Details
    • ๐Ÿ‘Œ Support for source maps in HMR updates - Details
    • ๐Ÿ‘Œ Support for scoping variables in CSS modules - Details
    • ๐Ÿ‘Œ Support for custom CSS modules naming patterns - Details
    • ๐Ÿ‘Œ Support for node_modules packages in @parcel/resolver-glob - Details
    • โž• Add support for defining compilerOptions in Vue config - Details
    • โž• Add support for Vue 3 <script setup> - Details
    • โž• Add support for gif, tiff, avif, heic, and heif images in @parcel/transformer-image - Details
    • โž• Add support for animated images (i.e. gifs, webp, etc.) in @parcel/transformer-image - Details
    • ๐Ÿ‘Œ Support for missing fields in web extensions manifest v3 - Details, Details
    • ๐Ÿ‘Œ Improve elm compiler error output - Details
    • ๐Ÿ‘Œ Support for useDefineForClassFields option in tsconfig.json - Details
    • โž• Add --hmr-host CLI option to set HMR host independently from dev server - Details

    ๐Ÿ›  Fixed

    • โšก๏ธ Update lmdb-js. Fixes Node 18 support - Details, Details
    • โšก๏ธ Update napi-rs to v2 - Details
    • ๐Ÿ›  Fix SWC targets for older browsers - Details
    • โž• Add SWC error handler to fix panic during transpilation - Details
    • โšก๏ธ Update SWC. Fixes issue with Symbol.toStringTag - Details
    • โฌ†๏ธ Bump SWC to fix spreads of imported symbols - Details
    • ๐Ÿ“ฆ Correctly emit warnings for unnecessary PostCSS plugins in package.json - Details
    • ๐Ÿ›  Fix typo in error message - Details
    • โœ‚ Remove duplicate values in graph APIs when getting connected node ids - Details
    • ๐Ÿ›  Fix Pug support in Vue files - Details
    • ๐Ÿ›  Fix export declare syntax in generated TypeScript definitions - Details
    • 0๏ธโƒฃ Preserve correct this for named/default imports - Details
    • ๐Ÿ›  Fix hoisting for optional chaining member expressions - Details
    • ๐Ÿ›  Fix issues with web extensions - Details
    • ๐Ÿ“ฆ Reload the closest package.json to an asset if it's a package entry to fix sideEffects - Details
    • โš  Only emit non static import bailout warnings for variables which correspond to a * import - Details

Previous changes from v2.5.0

  • โž• Added

    • โž• Add support for Web Extension manifest v3 - Details
    • Rewrite __dirname and __filename to refer to the original path when building for Node.js targets - Details
    • Generate codeframe positions for JSON5 - Details
    • โž• Add $schema support in web extension manifest - Details
    • โž• Add support for in expressions with process.env, e.g. 'foo' in process.env - Details

    ๐Ÿ›  Fixed

    • โšก๏ธ Updated SWC. - Details + Details
    • ๐Ÿš€ Update Parcel CSS to v1.8.1 - Details + Details
    • ๐Ÿ›  Fix diagnostic message - Details
    • ๐Ÿ›  Disable react refresh for library targets. Fixes "Asset was skipped or not found" error. - Details
    • ๐Ÿ’… Don't process inline <style> elements as CSS modules - Details
    • ๐Ÿ›  Fix issue with multiple images in srcset attribute - Details
    • ๐Ÿ›  Fix peer dependencies - Details + Details
    • Scope hoisting: Fix wrapping when any ancestor asset is wrapped - Details
    • Scope hoisting: Don't insert unused requires that aren't registered anywhere - Details
    • ๐Ÿฑ Scope hoisting: Fix wrapped assets importing their own namespace - Details
    • ๐Ÿ›  Fix issues with resolving symbols - Details
    • ๐Ÿ›  Fix loading .env files when entries are specified using "source" field in package.json - Details
    • ๐Ÿšš Correctly remove orphaned non-tree subgraphs - Details