Skip to content

Commit

Permalink
Merge pull request #9 from eolme/fix-webpack-analyze
Browse files Browse the repository at this point in the history
Fix webpack export analysis
  • Loading branch information
eolme authored May 2, 2023
2 parents da34ca0 + 5dc20df commit 421930b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "i18nano",
"version": "4.0.0",
"version": "4.0.1",
"main": "./lib/index.js",
"module": "./lib/index.mjs",
"types": "./lib/index.d.ts",
Expand Down Expand Up @@ -44,25 +44,25 @@
"devDependencies": {
"@jest/types": "^29.5.0",
"@mntm/eslint-config": "^1.4.0",
"@types/node": "^18.15.7",
"@types/react": "^18.0.29",
"@types/node": "^18.16.3",
"@types/react": "^18.2.0",
"@types/react-test-renderer": "^18.0.0",
"@vitest/coverage-c8": "^0.29.7",
"esbuild": "^0.17.12",
"eslint": "^8.36.0",
"@vitest/coverage-c8": "^0.30.1",
"esbuild": "^0.17.18",
"eslint": "^8.39.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-reconciler": "0.29.0",
"react-test-renderer": "18.2.0",
"scheduler": "0.23.0",
"typescript": "^5.0.2",
"vite": "^4.2.1",
"vite-plugin-dts": "^2.1.0",
"vitest": "^0.29.7"
"typescript": "^5.0.4",
"vite": "^4.3.4",
"vite-plugin-dts": "^2.3.0",
"vitest": "^0.30.1"
},
"resolutions": {
"esbuild": "^0.17.12",
"vite": "^4.2.1"
"esbuild": "^0.17.18",
"vite": "^4.3.4"
},
"peerDependencies": {
"react": "^18.2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type ReactUsePromise<T> = PromiseLike<T> & {
reason?: unknown;
};

const ReactNextUse = (React as any)[String('use')];
const ReactNextUse = (React as any)['use'.toString()];
const ReactNextPromise = ReactNextUse as <T>(promise: ReactUsePromise<T>) => T;
const ReactNextContext = ReactNextUse as <T>(context: React.Context<T>) => T;

Expand Down

0 comments on commit 421930b

Please sign in to comment.