Comment on page
Migrate to v3
How to migrate Spig website to version 3?
- Update node to
16
in.nvmrc
- Rename
spig.js
tospig.mjs
to use Spignite's ESM module. - Change
spig.mjs
to import Spignite module (instead ofrequire
):import { Spig } from "spignite"; - Update
package.json
srcripts to use the new file namespig.mjs
.
That should be it.
Last modified 1yr ago