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:
Aria Minaei 2021-08-07 21:41:07 +02:00
parent 7c759f2f6d
commit 1497eaf610
34 changed files with 731 additions and 91 deletions

View file

@ -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",

View file

@ -14,16 +14,6 @@
"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",
"files": [
"dist/index.cjs",
@ -38,8 +28,11 @@
"scripts": {
"prepublish": "node ../../devEnv/ensurePublishing.js"
},
"sideEffects": true,
"sideEffects": false,
"peerDependencies": {
"@theatre/core": "*"
},
"dependencies": {
"@theatre/dataverse": "workspace:*"
}
}