Change8

@solidjs/babel-plugin@2.0.0-rc.3

Breaking Changes
📦 solid-jsView on GitHub →
4 breaking3 features🐛 1 fixes🔧 9 symbols

Summary

SolidJS has absorbed the 0.50 expressions snapshot, refactoring compilers and runtimes into new monorepo packages. This release also includes fixes for compiler lowering divergences.

⚠️ Breaking Changes

  • The expressions snapshot has been absorbed into the SolidJS monorepo. Compilers are now available as `@solidjs/babel-plugin` and `@solidjs/compiler`. Runtimes are dumped into `@solidjs/web`, `h`, `html`, and `universal`.
  • The `rxcore` seam has been dropped, and runtimes are flattened into package `src/`. The `babel-preset-solid` package has been deleted.
  • Node `transform()` now defaults `moduleName` to `@solidjs/web` and `builtIns` to the Solid control-flow set, matching `@solidjs/babel-plugin`.
  • SSR now leaves a sole component child unescaped, and only HTML-escapes mixed/fragment children and element holes.

Migration Steps

  1. Update imports from `@babel/plugin-syntax-jsx` to `@solidjs/babel-plugin-jsx` if you were using the DOM Expressions loader.
  2. Update imports for runtimes to `@solidjs/web`, `h`, `html`, or `universal`.
  3. Remove `babel-preset-solid` from your configuration.

✨ New Features

  • Compilers are now available as `@solidjs/babel-plugin` and `@solidjs/compiler`.
  • Runtimes are now dumped into `@solidjs/web`, `h`, `html`, and `universal`.
  • Compiler natives are now published as `@solidjs/compiler-*`.

🐛 Bug Fixes

  • Fixed Babel and native compiler lowering divergences around nested content, custom-element ownership, static attributes, namespaces, and conditional evaluation order.

Affected Symbols