Skip to content

Commit

Permalink
Fix bundling of cjs module (#2412)
Browse files Browse the repository at this point in the history
* Fix bundling of cjs module
* Run prettier
  • Loading branch information
perrin4869 authored Nov 4, 2021
1 parent 14b4f5e commit 51417a3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
-->

Expand Down
1 change: 0 additions & 1 deletion build.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 51417a3

Please sign in to comment.