diff --git a/config/rollup.iife.config.js b/config/rollup.iife.config.js index 2dfeafe..0216d1a 100644 --- a/config/rollup.iife.config.js +++ b/config/rollup.iife.config.js @@ -1,6 +1,5 @@ import { nodeResolve } from "@rollup/plugin-node-resolve"; import commonJS from "@rollup/plugin-commonjs"; -import inject from "@rollup/plugin-inject"; import virtual from "@rollup/plugin-virtual"; import replace from "@rollup/plugin-replace"; import visualizer from "rollup-plugin-visualizer"; @@ -25,8 +24,6 @@ export default { crypto: empty, readline: empty, ejs: empty, - // Stub out a "global" module that we can inject later - global: empty, }), nodeResolve({ browser: true, @@ -37,10 +34,6 @@ export default { replace({ "process.browser": !!process.env.BROWSER }), - inject({ - // Inject the "global" virtual module if we see any reference to `global` in the code - global: "global", - }), visualizer(), ] }; diff --git a/package.json b/package.json index 3d6890a..f3272fb 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ }, "devDependencies": { "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-inject": "^4.0.2", "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^11.1.0", "@rollup/plugin-replace": "^2.3.4",