v7.0.6
Patch Release
-
fix(esm): fix initial ESM blockers for Redwood apps (#10083) by @jtoar and @Josh-Walker-GM
This PR makes some initial fixes that were required for making a Redwood app ESM. Redwood apps aren't ready to transition to ESM yet, but we're working towards it and these changes were backwards-compatible. If you're interested in trying out ESM, there will be an experimental setup command in the future. For now you'd have to make manual changes to your project:
- dist imports, like
import ... from '@redwoodjs/api/logger'
need to be changed toimport ... from '@redwoodjs/api/logger/index.js'
- The Redwood Vite plugin in
web/vite.config.ts
needs to be changed toredwood.default
before being invoked
There are probably many others still depending on your project. Again, we don't recommend actually doing this yet, but are enumerating things just to be transparent about the changes in this release.
- dist imports, like