parcel v2.5.0 Release Notes

Release Date: 2022-04-21 // about 1 month ago
  • ➕ 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

Previous changes from v2.4.1

  • 🛠 Fixed

    • 🛠 Fix :export in CSS modules
    • 🚚 Don't remove unused classes or @keyframes when a CSS module is processed by postcss
    • 🛠 Fix bundling issue with CSS modules where unintended side effects from a different page could be run
    • 🛠 Fix crash with CSS in multiple environments
    • 🚀 Update Parcel CSS. Fixes issues with ::-webkit-scrollbar, list styles in CSS modules, @-moz-document, and more. See release notes.
    • ⚡️ Update SWC. Fixes an issue with parenthesized expressions following a return statement.