From 36d799d80120fd47ffeb6f638bc04b5472f90875 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Jul 2023 03:32:49 -0400 Subject: [PATCH] refactor: Revert "feat: add wasm plugin" This reverts commit 5a72c3c946e6ab1a53a0d1f7c3681dc3d8054de3. --- npm-shrinkwrap.json | 11 +---------- package.json | 3 +-- templates/vite.config.js | 2 -- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 9c93423..1fbc43c 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -12,8 +12,7 @@ "presetter": "^4.0.1", "vite": "^4.4.2", "vite-plugin-node-polyfills": "^0.9.0", - "vite-plugin-optimizer": "^1.4.2", - "vite-plugin-wasm": "^3.2.2" + "vite-plugin-optimizer": "^1.4.2" } }, "node_modules/@ampproject/remapping": { @@ -18131,14 +18130,6 @@ "resolved": "https://registry.npmjs.org/vite-plugin-optimizer/-/vite-plugin-optimizer-1.4.2.tgz", "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": { "version": "0.18.11", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.11.tgz", diff --git a/package.json b/package.json index abead13..d6de041 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,7 @@ "presetter": "^4.0.1", "vite": "^4.4.2", "vite-plugin-node-polyfills": "^0.9.0", - "vite-plugin-optimizer": "^1.4.2", - "vite-plugin-wasm": "^3.2.2" + "vite-plugin-optimizer": "^1.4.2" }, "publishConfig": { "access": "public" diff --git a/templates/vite.config.js b/templates/vite.config.js index 39892ef..fecbc96 100644 --- a/templates/vite.config.js +++ b/templates/vite.config.js @@ -1,12 +1,10 @@ import { defineConfig } from "vite"; import optimizer from "vite-plugin-optimizer"; import { nodePolyfills } from "vite-plugin-node-polyfills"; -import wasm from "vite-plugin-wasm"; export default defineConfig({ build: {viteBuild}, resolve: {viteResolve}, plugins: [ - wasm(), optimizer({viteOptimize}), nodePolyfills({vitePolyfill}), ],