Skip to content

Commit

Permalink
fix(play): 解决Playground误打包了react/jsx-runtime的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
otakustay committed Feb 22, 2024
1 parent 798c7f1 commit df8c54d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 34 deletions.
9 changes: 4 additions & 5 deletions packages/cli-play/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"test": "vitest run"
},
"devDependencies": {
"@monaco-editor/react": "^4.6.0",
"@types/body-parser": "^1.19.3",
"@types/debounce": "^1.2.2",
"@types/dedent": "^0.7.0",
Expand All @@ -34,17 +35,19 @@
"@types/react": "~18.2.27",
"@vitejs/plugin-react": "^4.1.0",
"c8": "^8.0.1",
"debounce": "^1.2.1",
"dedent": "^1.5.1",
"eslint": "^8.51.0",
"marked": "^9.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"socket.io-client": "^4.7.2",
"typescript": "next",
"vite": "^4.4.11",
"vitest": "^0.34.6",
"webpack": "^5.88.2"
},
"dependencies": {
"@monaco-editor/react": "^4.6.0",
"@reskript/build-utils": "6.1.1",
"@reskript/config-vite": "6.1.1",
"@reskript/config-webpack": "6.1.1",
Expand All @@ -53,16 +56,12 @@
"@reskript/settings": "6.1.1",
"body-parser": "^1.20.2",
"chokidar": "^3.5.3",
"debounce": "^1.2.1",
"loader-of-loader": "^1.0.3",
"localforage": "^1.10.0",
"marked": "^9.1.0",
"ramda": "^0.29.1",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"socket.io": "^4.7.2",
"socket.io-client": "^4.7.2",
"unified": "^10.1.2",
"webpack-dev-server": "^4.15.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-play/scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const config = {
fileName: () => 'index.js',
},
rollupOptions: {
external: ['react', 'react-dom'],
external: [/^react(\/|$)/, /^react-dom(\/|$)/],
},
},
plugins: [
Expand Down
48 changes: 20 additions & 28 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 df8c54d

Please sign in to comment.