10.0.0: [BROKEN] Move to ES Modules at the project level
Changes
This version is broken, use 10.1.0 instead
We've been stuck for a while because a dependency switched to Pure ESM and Vite's --config didn't let us make the switch #28
This version moves the whole project to ES Modules by setting "type": "module" in package.json.
Upgrade instructions (more info)
Merge upstream changes
First, configure this repo as a remote for your repo (you only need to do this once)
git remote add template https://github.com/bensmithett/tropical.git
Then fetch & merge the latest changes, resolving any conflicts manually:
git fetch template
git merge template/master
or...
Manually update your code
See https://github.com/bensmithett/tropical/pull/38/files, you'll need to:
- In
package.jsonadd"type": "module"and remove theyarn build:serverscript - Rename
.storybook/main.jsto.storybook/main.cjs yarn outdatedand upgrade the outdated dependencies.- Copy the changes from
prerender.jsserver.jsvite.config.js
- Delete
vite.config.server.js