* output mithril, stream and ospec esm versions on build
* Add esm bundles
* [request] Clearer error message for JSON deserialization failure (#2195)
* Bundled output for commit fd7cf8041e [skip ci]
* Fix #1714 conditionally halting stream (#2200)
* Fix #1714 conditionally halting stream
* Add note in changelog
* Do not include stream as named export in mithril.esm.js
* Rename mithril.min.esm.js to mithril.esm.min.js
* Add esm files to eslintignore
* Add named exports
* Add hyperscript `m` as named export
* Add builds with export changes
* checkout regular bundled files
* Change .esm.js to .mjs
* Update pkg module to point to .mjs
* Fix for export names to avoid collision
* Updated bundled files
19 lines
305 B
JavaScript
19 lines
305 B
JavaScript
"use strict"
|
|
|
|
/*
|
|
|
|
This script will create an esm compatible script
|
|
from the already compiled version of:
|
|
|
|
- ospec.js > ospec.mjs
|
|
|
|
*/
|
|
|
|
var fs = require("fs")
|
|
|
|
var ospec = fs.readFileSync("ospec.js", "utf8")
|
|
fs.writeFileSync("ospec.mjs",
|
|
"export default "
|
|
+ ospec.slice(ospec.indexOf("})") + 2)
|
|
+ "()"
|
|
)
|