Skip to content

Instantly share code, notes, and snippets.

View cdimitroulas's full-sized avatar

Christos Dimitroulas cdimitroulas

View GitHub Profile
@cdimitroulas
cdimitroulas / browser-split.patch
Created December 7, 2022 17:33
Patch file for msw/interceptors showing changes to split browser/node builds
diff --git a/package.json b/package.json
index d3055f6..9e40a29 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"test:integration:node": "jest --c test/jest.node.config.js --runInBand",
"test:integration:browser": "jest --c test/jest.browser.config.js",
"clean": "rimraf lib",
- "build": "yarn clean && cross-env NODE_ENV=production tsup --splitting",
+ "build": "yarn clean && cross-env NODE_ENV=production tsup",