Skip to content

Commit

Permalink
use pre-release version of precontruct to build with worker support
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksrandall committed Dec 10, 2021
1 parent 04681a5 commit 64cdf8d
Show file tree
Hide file tree
Showing 21 changed files with 302 additions and 24 deletions.
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,8 @@
"globals": {
"react": "React",
"react/jsx-runtime": "ReactJSX",
"react/jsx-dev-runtime": "ReactJSXDev"
},
"___experimentalFlags_WILL_CHANGE_IN_PATCH": {
"newEntrypoints": true,
"newDistFilenames": true
"react/jsx-dev-runtime": "ReactJSXDev",
"@emotion/react": "emotionReact"
}
},
"bugs": {
Expand Down Expand Up @@ -257,8 +254,8 @@
"react-primitives": "^0.8.1",
"react-router-dom": "^4.2.2",
"react-test-renderer": "16.8.6",
"react18": "npm:react@alpha",
"react18-dom": "npm:react-dom@alpha",
"react18": "npm:react@rc",
"react18-dom": "npm:react-dom@rc",
"svg-tag-names": "^1.1.1",
"through": "^2.3.8",
"unified": "^6.1.6",
Expand Down
14 changes: 14 additions & 0 deletions packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
"./dist/emotion-cache.cjs.js": "./dist/emotion-cache.browser.cjs.js",
"./dist/emotion-cache.esm.js": "./dist/emotion-cache.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-cache.worker.esm.js",
"default": "./dist/emotion-cache.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-cache.browser.esm.js",
"default": "./dist/emotion-cache.browser.cjs.js"
},
"module": "./dist/emotion-cache.esm.js",
"default": "./dist/emotion-cache.cjs.js"
}
},
"types": "types/index.d.ts",
"license": "MIT",
"repository": "https://github.com/emotion-js/emotion/tree/main/packages/cache",
Expand Down
14 changes: 14 additions & 0 deletions packages/hash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,19 @@
"browser": {
"./dist/emotion-hash.cjs.js": "./dist/emotion-hash.browser.cjs.js",
"./dist/emotion-hash.esm.js": "./dist/emotion-hash.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-hash.worker.esm.js",
"default": "./dist/emotion-hash.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-hash.browser.esm.js",
"default": "./dist/emotion-hash.browser.cjs.js"
},
"module": "./dist/emotion-hash.esm.js",
"default": "./dist/emotion-hash.cjs.js"
}
}
}
14 changes: 14 additions & 0 deletions packages/is-prop-valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,19 @@
"browser": {
"./dist/emotion-is-prop-valid.cjs.js": "./dist/emotion-is-prop-valid.browser.cjs.js",
"./dist/emotion-is-prop-valid.esm.js": "./dist/emotion-is-prop-valid.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-is-prop-valid.worker.esm.js",
"default": "./dist/emotion-is-prop-valid.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-is-prop-valid.browser.esm.js",
"default": "./dist/emotion-is-prop-valid.browser.cjs.js"
},
"module": "./dist/emotion-is-prop-valid.esm.js",
"default": "./dist/emotion-is-prop-valid.cjs.js"
}
}
}
14 changes: 14 additions & 0 deletions packages/memoize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,19 @@
"browser": {
"./dist/emotion-memoize.cjs.js": "./dist/emotion-memoize.browser.cjs.js",
"./dist/emotion-memoize.esm.js": "./dist/emotion-memoize.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-memoize.worker.esm.js",
"default": "./dist/emotion-memoize.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-memoize.browser.esm.js",
"default": "./dist/emotion-memoize.browser.cjs.js"
},
"module": "./dist/emotion-memoize.esm.js",
"default": "./dist/emotion-memoize.cjs.js"
}
}
}
14 changes: 14 additions & 0 deletions packages/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,19 @@
"browser": {
"./dist/emotion-native.cjs.js": "./dist/emotion-native.browser.cjs.js",
"./dist/emotion-native.esm.js": "./dist/emotion-native.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-native.worker.esm.js",
"default": "./dist/emotion-native.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-native.browser.esm.js",
"default": "./dist/emotion-native.browser.cjs.js"
},
"module": "./dist/emotion-native.esm.js",
"default": "./dist/emotion-native.cjs.js"
}
}
}
14 changes: 14 additions & 0 deletions packages/primitives-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,19 @@
"browser": {
"./dist/emotion-primitives-core.cjs.js": "./dist/emotion-primitives-core.browser.cjs.js",
"./dist/emotion-primitives-core.esm.js": "./dist/emotion-primitives-core.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-primitives-core.worker.esm.js",
"default": "./dist/emotion-primitives-core.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-primitives-core.browser.esm.js",
"default": "./dist/emotion-primitives-core.browser.cjs.js"
},
"module": "./dist/emotion-primitives-core.esm.js",
"default": "./dist/emotion-primitives-core.cjs.js"
}
}
}
14 changes: 14 additions & 0 deletions packages/primitives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,19 @@
"browser": {
"./dist/emotion-primitives.cjs.js": "./dist/emotion-primitives.browser.cjs.js",
"./dist/emotion-primitives.esm.js": "./dist/emotion-primitives.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-primitives.worker.esm.js",
"default": "./dist/emotion-primitives.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-primitives.browser.esm.js",
"default": "./dist/emotion-primitives.browser.cjs.js"
},
"module": "./dist/emotion-primitives.esm.js",
"default": "./dist/emotion-primitives.cjs.js"
}
}
}
4 changes: 4 additions & 0 deletions packages/react/_isolated-hnrs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"./dist/emotion-react-_isolated-hnrs.cjs.js": "./dist/emotion-react-_isolated-hnrs.browser.cjs.js",
"./dist/emotion-react-_isolated-hnrs.esm.js": "./dist/emotion-react-_isolated-hnrs.browser.esm.js"
},
"worker": {
"./dist/emotion-react-_isolated-hnrs.cjs.js": "./dist/emotion-react-_isolated-hnrs.worker.cjs.js",
"./dist/emotion-react-_isolated-hnrs.esm.js": "./dist/emotion-react-_isolated-hnrs.worker.esm.js"
},
"sideEffects": false,
"preconstruct": {
"umdName": "emotionHoistNonReactStatics"
Expand Down
4 changes: 4 additions & 0 deletions packages/react/jsx-dev-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"./dist/emotion-react-jsx-dev-runtime.cjs.js": "./dist/emotion-react-jsx-dev-runtime.browser.cjs.js",
"./dist/emotion-react-jsx-dev-runtime.esm.js": "./dist/emotion-react-jsx-dev-runtime.browser.esm.js"
},
"worker": {
"./dist/emotion-react-jsx-dev-runtime.cjs.js": "./dist/emotion-react-jsx-dev-runtime.worker.cjs.js",
"./dist/emotion-react-jsx-dev-runtime.esm.js": "./dist/emotion-react-jsx-dev-runtime.worker.esm.js"
},
"types": "../types/jsx-dev-runtime",
"sideEffects": false,
"preconstruct": {
Expand Down
50 changes: 50 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,56 @@
"./dist/emotion-react.cjs.js": "./dist/emotion-react.browser.cjs.js",
"./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-react.worker.esm.js",
"default": "./dist/emotion-react.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-react.browser.esm.js",
"default": "./dist/emotion-react.browser.cjs.js"
},
"module": "./dist/emotion-react.esm.js",
"default": "./dist/emotion-react.cjs.js"
},
"./jsx-runtime": {
"worker": {
"module": "./jsx-runtime/dist/emotion-react.worker.esm.js",
"default": "./jsx-runtime/dist/emotion-react.worker.cjs.js"
},
"browser": {
"module": "./jsx-runtime/dist/emotion-react.browser.esm.js",
"default": "./jsx-runtime/dist/emotion-react.browser.cjs.js"
},
"module": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js",
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
},
"./jsx-dev-runtime": {
"worker": {
"module": "./jsx-dev-runtime/dist/emotion-react.worker.esm.js",
"default": "./jsx-dev-runtime/dist/emotion-react.worker.cjs.js"
},
"browser": {
"module": "./jsx-dev-runtime/dist/emotion-react.browser.esm.js",
"default": "./jsx-dev-runtime/dist/emotion-react.browser.cjs.js"
},
"module": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js",
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
},
"./_isolated-hnrs": {
"worker": {
"module": "./_isolated-hnrs/dist/emotion-react.worker.esm.js",
"default": "./_isolated-hnrs/dist/emotion-react.worker.cjs.js"
},
"browser": {
"module": "./_isolated-hnrs/dist/emotion-react.browser.esm.js",
"default": "./_isolated-hnrs/dist/emotion-react.browser.cjs.js"
},
"module": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js",
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
}
},
"types": "types/index.d.ts",
"files": [
"src",
Expand Down
14 changes: 14 additions & 0 deletions packages/serialize/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,19 @@
"browser": {
"./dist/emotion-serialize.cjs.js": "./dist/emotion-serialize.browser.cjs.js",
"./dist/emotion-serialize.esm.js": "./dist/emotion-serialize.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-serialize.worker.esm.js",
"default": "./dist/emotion-serialize.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-serialize.browser.esm.js",
"default": "./dist/emotion-serialize.browser.cjs.js"
},
"module": "./dist/emotion-serialize.esm.js",
"default": "./dist/emotion-serialize.cjs.js"
}
}
}
3 changes: 3 additions & 0 deletions packages/server/create-instance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"browser": {
"./dist/emotion-server-create-instance.cjs.js": "./dist/emotion-server-create-instance.browser.cjs.js"
},
"worker": {
"./dist/emotion-server-create-instance.cjs.js": "./dist/emotion-server-create-instance.worker.cjs.js"
},
"types": "../types/create-instance"
}
20 changes: 20 additions & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@
"browser": {
"./dist/emotion-server.cjs.js": "./dist/emotion-server.browser.cjs.js"
},
"exports": {
".": {
"worker": {
"default": "./dist/emotion-server.worker.cjs.js"
},
"browser": {
"default": "./dist/emotion-server.browser.cjs.js"
},
"default": "./dist/emotion-server.cjs.js"
},
"./create-instance/index": {
"worker": {
"default": "./create-instance/index/dist/emotion-server.worker.cjs.js"
},
"browser": {
"default": "./create-instance/index/dist/emotion-server.browser.cjs.js"
},
"default": "./create-instance/index/dist/emotion-server-create-instance.cjs.js"
}
},
"preconstruct": {
"entrypoints": [
"./index.js",
Expand Down
14 changes: 14 additions & 0 deletions packages/sheet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
"./dist/emotion-sheet.cjs.js": "./dist/emotion-sheet.browser.cjs.js",
"./dist/emotion-sheet.esm.js": "./dist/emotion-sheet.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-sheet.worker.esm.js",
"default": "./dist/emotion-sheet.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-sheet.browser.esm.js",
"default": "./dist/emotion-sheet.browser.cjs.js"
},
"module": "./dist/emotion-sheet.esm.js",
"default": "./dist/emotion-sheet.cjs.js"
}
},
"types": "types/index.d.ts",
"license": "MIT",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions packages/styled/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"./dist/emotion-styled-base.cjs.js": "./dist/emotion-styled-base.browser.cjs.js",
"./dist/emotion-styled-base.esm.js": "./dist/emotion-styled-base.browser.esm.js"
},
"worker": {
"./dist/emotion-styled-base.cjs.js": "./dist/emotion-styled-base.worker.cjs.js",
"./dist/emotion-styled-base.esm.js": "./dist/emotion-styled-base.worker.esm.js"
},
"types": "../types/base",
"preconstruct": {
"umdName": "emotionStyledBase"
Expand Down
26 changes: 26 additions & 0 deletions packages/styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,32 @@
"./dist/emotion-styled.cjs.js": "./dist/emotion-styled.browser.cjs.js",
"./dist/emotion-styled.esm.js": "./dist/emotion-styled.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-styled.worker.esm.js",
"default": "./dist/emotion-styled.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-styled.browser.esm.js",
"default": "./dist/emotion-styled.browser.cjs.js"
},
"module": "./dist/emotion-styled.esm.js",
"default": "./dist/emotion-styled.cjs.js"
},
"./base": {
"worker": {
"module": "./base/dist/emotion-styled.worker.esm.js",
"default": "./base/dist/emotion-styled.worker.cjs.js"
},
"browser": {
"module": "./base/dist/emotion-styled.browser.esm.js",
"default": "./base/dist/emotion-styled.browser.cjs.js"
},
"module": "./base/dist/emotion-styled-base.esm.js",
"default": "./base/dist/emotion-styled-base.cjs.js"
}
},
"preconstruct": {
"umdName": "emotionStyled",
"entrypoints": [
Expand Down
14 changes: 14 additions & 0 deletions packages/unitless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,19 @@
"browser": {
"./dist/emotion-unitless.cjs.js": "./dist/emotion-unitless.browser.cjs.js",
"./dist/emotion-unitless.esm.js": "./dist/emotion-unitless.browser.esm.js"
},
"exports": {
".": {
"worker": {
"module": "./dist/emotion-unitless.worker.esm.js",
"default": "./dist/emotion-unitless.worker.cjs.js"
},
"browser": {
"module": "./dist/emotion-unitless.browser.esm.js",
"default": "./dist/emotion-unitless.browser.cjs.js"
},
"module": "./dist/emotion-unitless.esm.js",
"default": "./dist/emotion-unitless.cjs.js"
}
}
}
Loading

0 comments on commit 64cdf8d

Please sign in to comment.