Skip to content

Commit

Permalink
Add node polyfills (sora-xor#1591)
Browse files Browse the repository at this point in the history
* add node polyfills

* dedup
  • Loading branch information
Nikita-Polyakov authored Nov 5, 2024
1 parent b702912 commit af1b9b5
Show file tree
Hide file tree
Showing 3 changed files with 582 additions and 48 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkaswap-exchange-web",
"version": "1.43.0",
"version": "1.43.1",
"repository": {
"type": "git",
"url": "https://github.com/sora-xor/polkaswap-exchange-web.git"
Expand Down Expand Up @@ -84,6 +84,7 @@
"typescript-eslint": "^8.11.0",
"vite": "^5.4.10",
"vite-plugin-dynamic-import": "^1.6.0",
"vite-plugin-node-polyfills": "^0.22.0",
"vite-svg-loader": "^5.1.0",
"vitest": "^2.1.3"
},
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { fileURLToPath, URL } from 'node:url';
import vue from '@vitejs/plugin-vue2';
import { defineConfig } from 'vite';
import dynamicImport from 'vite-plugin-dynamic-import';
import { nodePolyfills } from 'vite-plugin-node-polyfills';
import svgLoader from 'vite-svg-loader';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), dynamicImport(), svgLoader()],
plugins: [vue(), dynamicImport(), svgLoader(), nodePolyfills()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
Expand Down
Loading

0 comments on commit af1b9b5

Please sign in to comment.