Skip to content

v7.0.6

Compare
Choose a tag to compare
@ahaywood ahaywood released this 01 Mar 19:32
· 1676 commits to main since this release

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 to import ... from '@redwoodjs/api/logger/index.js'
    • The Redwood Vite plugin in web/vite.config.ts needs to be changed to redwood.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.