Skip to content

Commit

Permalink
build(playground): fix missing constants node polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Feb 15, 2024
1 parent 63c6f02 commit 3dc7328
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"@vitejs/plugin-vue": "^4.5.0",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"rollup-plugin-node-polyfills": "^0.2.1",
"tailwindcss": "^3.3.5",
"typescript": "^5.3.3",
"vite": "^5.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default defineConfig({
},
resolve: {
alias: {
'constants': 'rollup-plugin-node-polyfills/polyfills/constants',
'@wakaru/unminify': path.resolve(__dirname, '../unminify/src/index.ts'),
'@wakaru/unpacker': path.resolve(__dirname, '../unpacker/src/index.ts'),
},
Expand Down
3 changes: 3 additions & 0 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 3dc7328

Please sign in to comment.