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

@ -3625,6 +3625,42 @@ __metadata:
languageName: unknown
linkType: soft
"@examples/dom-cra@workspace:examples/dom-cra":
version: 0.0.0-use.local
resolution: "@examples/dom-cra@workspace:examples/dom-cra"
dependencies:
"@testing-library/jest-dom": ^5.11.4
"@testing-library/react": ^11.1.0
"@testing-library/user-event": ^12.1.10
"@theatre/core": "workspace:*"
"@theatre/studio": "workspace:*"
react: ^17.0.2
react-dom: ^17.0.2
react-scripts: 4.0.3
web-vitals: ^1.0.1
languageName: unknown
linkType: soft
"@examples/r3f-cra@workspace:examples/r3f-cra":
version: 0.0.0-use.local
resolution: "@examples/r3f-cra@workspace:examples/r3f-cra"
dependencies:
"@react-three/drei": ^7.2.2
"@react-three/fiber": ^7.0.6
"@testing-library/jest-dom": ^5.11.4
"@testing-library/react": ^11.1.0
"@testing-library/user-event": ^12.1.10
"@theatre/core": "workspace:*"
"@theatre/plugin-r3f": "workspace:*"
"@theatre/studio": "workspace:*"
react: ^17.0.2
react-dom: ^17.0.2
react-scripts: 4.0.3
three: ^0.130.1
web-vitals: ^1.0.1
languageName: unknown
linkType: soft
"@hapi/address@npm:2.x.x":
version: 2.1.4
resolution: "@hapi/address@npm:2.1.4"
@ -10630,22 +10666,6 @@ __metadata:
languageName: node
linkType: hard
"dom-cra@workspace:examples/dom-cra":
version: 0.0.0-use.local
resolution: "dom-cra@workspace:examples/dom-cra"
dependencies:
"@testing-library/jest-dom": ^5.11.4
"@testing-library/react": ^11.1.0
"@testing-library/user-event": ^12.1.10
"@theatre/core": "workspace:*"
"@theatre/studio": "workspace:*"
react: ^17.0.2
react-dom: ^17.0.2
react-scripts: 4.0.3
web-vitals: ^1.0.1
languageName: unknown
linkType: soft
"dom-serializer@npm:0":
version: 0.2.2
resolution: "dom-serializer@npm:0.2.2"