refactor: Revert "feat: add wasm plugin"
This reverts commit 5a72c3c946
.
This commit is contained in:
parent
5fe2dd5f0e
commit
36d799d801
|
@ -12,8 +12,7 @@
|
||||||
"presetter": "^4.0.1",
|
"presetter": "^4.0.1",
|
||||||
"vite": "^4.4.2",
|
"vite": "^4.4.2",
|
||||||
"vite-plugin-node-polyfills": "^0.9.0",
|
"vite-plugin-node-polyfills": "^0.9.0",
|
||||||
"vite-plugin-optimizer": "^1.4.2",
|
"vite-plugin-optimizer": "^1.4.2"
|
||||||
"vite-plugin-wasm": "^3.2.2"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
|
@ -18131,14 +18130,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/vite-plugin-optimizer/-/vite-plugin-optimizer-1.4.2.tgz",
|
"resolved": "https://registry.npmjs.org/vite-plugin-optimizer/-/vite-plugin-optimizer-1.4.2.tgz",
|
||||||
"integrity": "sha512-UNQy+J31b+DeEc2NCxV+WIkwyYPWGPjYsnXO4+gM26CKY5KJ47JeRjchR11F3qfR8MWDX1+425LZfkUyXOfGFA=="
|
"integrity": "sha512-UNQy+J31b+DeEc2NCxV+WIkwyYPWGPjYsnXO4+gM26CKY5KJ47JeRjchR11F3qfR8MWDX1+425LZfkUyXOfGFA=="
|
||||||
},
|
},
|
||||||
"node_modules/vite-plugin-wasm": {
|
|
||||||
"version": "3.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/vite-plugin-wasm/-/vite-plugin-wasm-3.2.2.tgz",
|
|
||||||
"integrity": "sha512-cdbBUNR850AEoMd5nvLmnyeq63CSfoP1ctD/L2vLk/5+wsgAPlAVAzUK5nGKWO/jtehNlrSSHLteN+gFQw7VOA==",
|
|
||||||
"peerDependencies": {
|
|
||||||
"vite": "^2 || ^3 || ^4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/vite/node_modules/@esbuild/android-arm": {
|
"node_modules/vite/node_modules/@esbuild/android-arm": {
|
||||||
"version": "0.18.11",
|
"version": "0.18.11",
|
||||||
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.11.tgz",
|
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.11.tgz",
|
||||||
|
|
|
@ -18,8 +18,7 @@
|
||||||
"presetter": "^4.0.1",
|
"presetter": "^4.0.1",
|
||||||
"vite": "^4.4.2",
|
"vite": "^4.4.2",
|
||||||
"vite-plugin-node-polyfills": "^0.9.0",
|
"vite-plugin-node-polyfills": "^0.9.0",
|
||||||
"vite-plugin-optimizer": "^1.4.2",
|
"vite-plugin-optimizer": "^1.4.2"
|
||||||
"vite-plugin-wasm": "^3.2.2"
|
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import optimizer from "vite-plugin-optimizer";
|
import optimizer from "vite-plugin-optimizer";
|
||||||
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
import { nodePolyfills } from "vite-plugin-node-polyfills";
|
||||||
import wasm from "vite-plugin-wasm";
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
build: {viteBuild},
|
build: {viteBuild},
|
||||||
resolve: {viteResolve},
|
resolve: {viteResolve},
|
||||||
plugins: [
|
plugins: [
|
||||||
wasm(),
|
|
||||||
optimizer({viteOptimize}),
|
optimizer({viteOptimize}),
|
||||||
nodePolyfills({vitePolyfill}),
|
nodePolyfills({vitePolyfill}),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue