Skip to content

Commit

Permalink
feat: use modern jsx transform
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtextrem authored and mergatron[bot] committed Apr 16, 2024
1 parent c218181 commit 23249a1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "node",
"isolatedModules": false,
"importHelpers": true,
"jsx": "react",
"jsx": "react-jsxdev",
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
Expand Down
1 change: 1 addition & 0 deletions packages/framer-motion-3d/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const external = [
...Object.keys(pkg.peerDependencies || {}),
...Object.keys(motionPkg.dependencies || {}),
...Object.keys(motionPkg.peerDependencies || {}),
"react/jsx-runtime",
]

const cjs = Object.assign({}, config, {
Expand Down
2 changes: 1 addition & 1 deletion packages/framer-motion-3d/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "node",
"isolatedModules": false,
"importHelpers": true,
"jsx": "react",
"jsx": "react-jsx",
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
Expand Down
5 changes: 3 additions & 2 deletions packages/framer-motion/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const external = [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {}),
...Object.keys(pkg.optionalDependencies || {}),
"react/jsx-runtime",
]

const pureClass = {
Expand All @@ -46,7 +47,7 @@ const umd = Object.assign({}, config, {
exports: "named",
globals: { react: "React" },
},
external: ["react", "react-dom"],
external: ["react", "react-dom", "react/jsx-runtime"],
plugins: [resolve(), replaceSettings("development")],
})

Expand All @@ -63,7 +64,7 @@ const projection = Object.assign({}, config, {
},
},
plugins: [resolve(), replaceSettings("development")],
external: ["react", "react-dom"],
external: ["react", "react-dom", "react/jsx-runtime"],
})

const umdProd = Object.assign({}, umd, {
Expand Down
2 changes: 1 addition & 1 deletion packages/framer-motion/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"moduleResolution": "node",
"isolatedModules": false,
"importHelpers": true,
"jsx": "react",
"jsx": "react-jsx",
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
Expand Down

0 comments on commit 23249a1

Please sign in to comment.