Skip to content

Commit

Permalink
fix: add babel preset @babel/preset-react
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-mason committed May 1, 2024
1 parent 4bcb8df commit 6c28156
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/wild-mirrors-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@arancini/react": patch
"arancini": patch
---

fix: add babel preset @babel/preset-react
1 change: 1 addition & 0 deletions packages/arancini-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"devDependencies": {
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@babel/preset-react": "^7.24.1",
"@babel/preset-typescript": "^7.24.1",
"@isaac-mason/eslint-config-typescript": "^0.0.5",
"@rollup/plugin-babel": "^6.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/arancini-react/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const babelOptions = {
},
],
'@babel/preset-typescript',
'@babel/preset-react',
],
}

Expand Down
7 changes: 5 additions & 2 deletions packages/arancini/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export default [
name: 'react',
external: ['@arancini/core', '@arancini/react', 'react', 'react-dom'],
}),
entrypoint({ name: 'events', external: ['@arancini/events']}),
entrypoint({ name: 'systems', external: ['@arancini/systems', '@arancini/core'] }),
entrypoint({ name: 'events', external: ['@arancini/events'] }),
entrypoint({
name: 'systems',
external: ['@arancini/systems', '@arancini/core'],
}),
]
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ __metadata:
"@arancini/core": "npm:6.6.0"
"@babel/core": "npm:^7.24.5"
"@babel/preset-env": "npm:^7.24.5"
"@babel/preset-react": "npm:^7.24.1"
"@babel/preset-typescript": "npm:^7.24.1"
"@isaac-mason/eslint-config-typescript": "npm:^0.0.5"
"@rollup/plugin-babel": "npm:^6.0.4"
Expand Down

0 comments on commit 6c28156

Please sign in to comment.