Skip to content
Permalink
Browse files
Fix bundling of cjs module (#2412)
* Fix bundling of cjs module
* Run prettier
  • Loading branch information
perrin4869 committed Nov 4, 2021
1 parent 14b4f5e commit 51417a38111eeeb7cd14338bfb762cc2df487e1b
Showing with 2 additions and 3 deletions.
  1. +1 −1 README.md
  2. +0 −1 build.cjs
  3. +1 −1 package.json
@@ -27,7 +27,7 @@
<p align=center>
<a href="https://app.saucelabs.com/u/sinonjs">
<img src="https://app.saucelabs.com/browser-matrix/sinonjs.svg" alt="Sauce Test Status"/>
</a>
</a>
</p>
-->

@@ -44,7 +44,6 @@ makeBundle(
},
function (bundle) {
var script = preamble + bundle;
fs.writeFileSync("pkg/sinon.cjs", script);
fs.writeFileSync("pkg/sinon.js", script); // WebWorker can only load js files
}
);
@@ -118,7 +118,7 @@
"main": "./lib/sinon.js",
"module": "./pkg/sinon-esm.js",
"exports": {
"require": "./pkg/sinon.cjs",
"require": "./lib/sinon.js",
"import": "./pkg/sinon-esm.js"
},
"type": "module",

0 comments on commit 51417a3

Please sign in to comment.