Open Rich-Harris opened 1 year ago
Adding exports
is a breaking change on its own. Cutting a new major solely for this does more harm than good, especially since sirv
actually works fine in Node ESM (given native ESM interop).
Will include this once there's actually a change in functionality to constitute a sirv@3.x
release.
Adds a
pkg.exports
field. Today, if you importsirv
in a"type": "module"
app, it will importbuild.js
rather thanbuild.mjs
. With this change,build.mjs
is imported. Not that it actually makes a difference.