Closed mbullington closed 2 years ago
Adds another build script node scripts/make-browser.js that makes a browser.js in the root that you can use in Browserify/Webpack/ESBuild/whatever!.
node scripts/make-browser.js
browser.js
The trick here is that everything in our @mapbox/maki export is JSON serializable, so the script basically does:
@mapbox/maki
module.exports = JSON.stringify(maki)
Adds another build script
node scripts/make-browser.js
that makes abrowser.js
in the root that you can use in Browserify/Webpack/ESBuild/whatever!.The trick here is that everything in our
@mapbox/maki
export is JSON serializable, so the script basically does:module.exports = JSON.stringify(maki)