Skip to content

Commit

Permalink
chore(js-plugins): upgrade core version (#99)
Browse files Browse the repository at this point in the history
* chore(js-plugins): upgrade core version

* docs(js-plugins): update babel & react-compiler README
  • Loading branch information
shulandmimi authored Dec 22, 2024
1 parent cfa5fe8 commit 8764dba
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .changeset/kind-tomatoes-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@farmfe/js-plugin-react-compiler": patch
"@farmfe/js-plugin-babel": patch
---

chore: upgrade core version
6 changes: 3 additions & 3 deletions js-plugins/babel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import react from "@farmfe/plugin-react";

defineConfig({
plugins: [
// transform by compiler, default transform `tsx`, `jsx` files
// transform by babel, default transform `js`, `jsx`, `ts`, `tsx` files
babel(),
// transform jsx
// transform react
react(),
],
});
Expand All @@ -40,7 +40,7 @@ defineConfig({

```ts
{
moduleTypes: ["tsx", "jsx"],
moduleTypes: ["js", "jsx", "ts", "tsx"],
resolvedPaths: []
}
```
Expand Down
4 changes: 2 additions & 2 deletions js-plugins/babel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
},
"devDependencies": {
"@farmfe/cli": "^1.0.4",
"@farmfe/core": "^1.5.0",
"@farmfe/core": "^1.6.0",
"@farmfe/js-plugin-dts": "^0.6.4",
"@types/babel__core": "^7.20.5",
"@types/node": "^22.7.4",
"cross-env": "^7.0.3"
},
"peerDependencies": {
"@farmfe/core": "^1.5.0"
"@farmfe/core": "^1.6.0"
},
"files": [
"package.json",
Expand Down
2 changes: 1 addition & 1 deletion js-plugins/react-compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import react from "@farmfe/plugin-react";

defineConfig({
plugins: [
// transform by compiler, default transform `tsx`, `jsx` files
// transform by babel & react compiler, default transform `tsx`, `jsx` files
reactCompiler(),
// transform jsx
react(),
Expand Down
4 changes: 2 additions & 2 deletions js-plugins/react-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
"devDependencies": {
"@babel/types": "^7.26.3",
"@farmfe/cli": "^1.0.4",
"@farmfe/core": "^1.5.0",
"@farmfe/core": "^1.6.0",
"@farmfe/js-plugin-babel": "workspace:*",
"@farmfe/js-plugin-dts": "^0.6.4",
"@types/babel__core": "^7.20.5",
"@types/node": "^22.7.4",
"cross-env": "^7.0.3"
},
"peerDependencies": {
"@farmfe/core": "^1.5.0"
"@farmfe/core": "^1.6.0"
},
"files": [
"package.json",
Expand Down
137 changes: 133 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8764dba

Please sign in to comment.