WIP: Getting r3f to work with create-react-app
* Temporarily disabled ESM bundles because the current setup confuses webpack4 (but not parceljs). Since create-react-app uses webpack4, not doing this would make theatre incompatible with CRA.
This commit is contained in:
parent
7c759f2f6d
commit
1497eaf610
34 changed files with 731 additions and 91 deletions
|
@ -14,17 +14,8 @@
|
|||
"url": "https://www.theatrejs.com"
|
||||
},
|
||||
"main": "dist/index.cjs",
|
||||
"module": "dist/index.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./dist/index.cjs",
|
||||
"import": "./dist/index.mjs",
|
||||
"default": "./dist/index.cjs",
|
||||
"node": "./dist/index.cjs",
|
||||
"script": "./dist/index.min.js"
|
||||
}
|
||||
},
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "commonjs",
|
||||
"files": [
|
||||
"dist/index.cjs",
|
||||
"dist/index.cjs.map",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue