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 intsconfig.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 withprocess.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