Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
},
"dependencies": {
"esbuild-plugin-react18-example": "workspace:*",
"next": "^13.5.2",
"next": "^13.5.4",
"nextjs-themes": "^1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.5.2",
"@types/node": "^20.6.3",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@next/eslint-plugin-next": "^13.5.4",
"@types/node": "^20.8.3",
"@types/react": "^18.2.25",
"@types/react-dom": "^18.2.11",
"esbuild-plugin-react18": "workspace:^",
"eslint-config-custom": "workspace:*",
"tsconfig": "workspace:*",
Expand Down
16 changes: 8 additions & 8 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"preview": "vite preview"
},
"dependencies": {
"@mayank1513/fork-me": "^1.0.2",
"@mayank1513/fork-me": "^1.1.0",
"esbuild-plugin-react18-example": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react18-themes": "^1.0.8"
},
"devDependencies": {
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vitejs/plugin-react-swc": "^3.3.2",
"@types/react": "^18.2.25",
"@types/react-dom": "^18.2.11",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@vitejs/plugin-react-swc": "^3.4.0",
"esbuild-plugin-react18": "workspace:^",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"typescript": "^5.2.2",
"vite": "^4.4.9"
"vite": "^4.4.11"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"eslint": "^8.50.0",
"eslint": "^8.51.0",
"prettier": "^3.0.3",
"tsconfig": "workspace:*",
"turbo": "^1.10.14"
"turbo": "^1.10.15"
},
"packageManager": "pnpm@8.6.10",
"name": "esbuild-plugin-react18"
Expand Down
22 changes: 11 additions & 11 deletions packages/esbuild-plugin-react18-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@
},
"devDependencies": {
"@testing-library/react": "^14.0.0",
"@turbo/gen": "^1.10.14",
"@types/node": "^20.6.3",
"@types/react": "^18.2.22",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"@vitest/coverage-v8": "^0.34.5",
"esbuild-plugin-ignoretests": "^0.0.6",
"esbuild-plugin-removetestid": "^0.0.3",
"esbuild-react18-useclient": "^1.0.5",
"@turbo/gen": "^1.10.15",
"@types/node": "^20.8.3",
"@types/react": "^18.2.25",
"@types/react-dom": "^18.2.11",
"@vitejs/plugin-react": "^4.1.0",
"@vitest/coverage-v8": "^0.34.6",
"esbuild-plugin-ignoretests": "^0.0.7",
"esbuild-plugin-react18": "workspace:*",
"esbuild-plugin-removetestid": "^0.0.5",
"esbuild-react18-useclient": "^1.0.7",
"eslint-config-custom": "workspace:*",
"jsdom": "^22.1.0",
"octokit": "^3.1.0",
"octokit": "^3.1.1",
"react": "^18.2.0",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^0.34.5"
"vitest": "^0.34.6"
},
"peerDependencies": {
"@types/react": "16.8 - 18",
Expand Down
6 changes: 6 additions & 0 deletions packages/esbuild-plugin-react18/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# esbuild-plugin-react18

## 0.0.4

### Patch Changes

- Fix #8 initialise plugin without passing options

## 0.0.3

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions packages/esbuild-plugin-react18/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "esbuild-plugin-react18",
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
"private": false,
"version": "0.0.3",
"version": "0.0.4",
"description": "Unleash the Power of React Server Components! ESBuild plugin to build RSC (React18 Server Components) compatible libraries.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -12,13 +12,13 @@
"publish-package": "cd dist && npm publish --access public"
},
"devDependencies": {
"@types/node": "^18",
"@vitest/coverage-v8": "^0.34.5",
"esbuild": "^0.18.17",
"octokit": "^3.1.0",
"@types/node": "^20.8.3",
"@vitest/coverage-v8": "^0.34.6",
"esbuild": "^0.19.4",
"octokit": "^3.1.1",
"tiny-glob": "^0.2.9",
"typescript": "^5.1.6",
"vitest": "^0.34.1"
"typescript": "^5.2.2",
"vitest": "^0.34.6"
},
"repository": {
"type": "git",
Expand Down
3 changes: 1 addition & 2 deletions packages/esbuild-plugin-react18/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ type React18PluginOptions = {
};

/** This plugin prevents building test files by esbuild. DTS may still geenrate type files for the tests with only { } as file content*/
const react18Plugin: (options: React18PluginOptions) => Plugin = options => ({
const react18Plugin: (options?: React18PluginOptions) => Plugin = (options = {}) => ({
name: "esbuild-plugin-react18-" + uuid(),
setup(build) {
if (!options) options = {};
const ignoreNamespace = "mayank1513-ignore-" + uuid();
const keepNamespace = "mayank1513-keep-" + uuid();
const testPathRegExp = /.*\.(test|spec|check)\.(j|t)s(x)?$/i;
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"private": true,
"devDependencies": {
"@vercel/style-guide": "^5.0.1",
"eslint-config-turbo": "^1.10.14"
"eslint-config-turbo": "^1.10.15"
}
}