Skip to content

Commit 51417a3

Browse files
authoredNov 4, 2021
Fix bundling of cjs module (#2412)
* Fix bundling of cjs module * Run prettier
1 parent 14b4f5e commit 51417a3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<p align=center>
2828
<a href="https://app.saucelabs.com/u/sinonjs">
2929
<img src="https://app.saucelabs.com/browser-matrix/sinonjs.svg" alt="Sauce Test Status"/>
30-
</a>
30+
</a>
3131
</p>
3232
-->
3333

‎build.cjs

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ makeBundle(
4444
},
4545
function (bundle) {
4646
var script = preamble + bundle;
47-
fs.writeFileSync("pkg/sinon.cjs", script);
4847
fs.writeFileSync("pkg/sinon.js", script); // WebWorker can only load js files
4948
}
5049
);

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"main": "./lib/sinon.js",
119119
"module": "./pkg/sinon-esm.js",
120120
"exports": {
121-
"require": "./pkg/sinon.cjs",
121+
"require": "./lib/sinon.js",
122122
"import": "./pkg/sinon-esm.js"
123123
},
124124
"type": "module",

0 commit comments

Comments
 (0)
Please sign in to comment.