Skip to content

Conversation

@wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Dec 10, 2025

Breaking Changes

  • The main export is now ESM, rather than CJS.
    • The CJS bundle is still published, but it has been renamed to index.cjs, rather than index.cjs.js.
  • The experimentalDynamicComponent option has been renamed to dynamicImports, as it is no longer experimental.
  • LWC is now authored using TypeScript v6 (prerelease).
  • The wire decorator now uses const to better infer generic types, so may report errors that were previously false negatives.

Deprecations

  • @lwc/engine-server has been deprecated. Users should update their code to use the replacement package, @lwc/ssr-runtime.

Other Changes

  • We now leverage engines.node to warn on node 16 or earlier, as LWC uses syntax not supported by those versions of node.

Planned, but not included

  • I tried to add package.json exports, but it broke vitest. I didn't want to spend too much time on a minor feature, so I gave up.

jmsjtu and others added 6 commits December 10, 2025 16:34
* build(deps): bump meriyah from 5.0.0 to 7.0.0

Bumps [meriyah](https://github.com/meriyah/meriyah) from 5.0.0 to 7.0.0.
- [Release notes](https://github.com/meriyah/meriyah/releases)
- [Changelog](https://github.com/meriyah/meriyah/blob/main/CHANGELOG.md)
- [Commits](meriyah/meriyah@v5.0.0...v7.0.0)

---
updated-dependencies:
- dependency-name: meriyah
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: fix version bump errors

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: change packages to type: module

* chore: don't lint .cjs files

we don't use them

* chore: convert `module.exports` to `export default`

* chore: replace `__dirname` with `import.meta.dirname`

* chore: use .cjs extension

* chore: rename test command to match package

* revert(wdio): change back to commonjs

* chore: convert script to esm

* chore: change `main` entrypoint from CJS to ESM

* fix(esm): misc changes to support ESM-first

* fix: still use CJS for bundling

* feat: add package.json `exports`
wjhsf and others added 23 commits December 15, 2025 20:24
* chore(scripts): add engines.node to package.json validation

* chore(package.json): add engines.node to packages

* chore(engines): downgrade node to lowest version that works

* chore(engines): downgrade node to lowest version that works

* chore(engines): remove useless engines from root package.json
breaks vitest and I don't want to spend any more time on this
* feat: remove engine-server from `lwc` barrel

* chore: mark engine-server as private

* test(ssr): move fixtures from engine-server to ssr-compiler

* chore: fix deps again hopefully
feature was never implemented
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants