Skip to content

Commit 31f46e3

Browse files
committed
adding rollup-plugin-node-externals modules
1 parent 3cd201c commit 31f46e3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"jsdom": "^26.0.0",
6060
"json-to-graphql-query": "^2.3.0",
6161
"prettier": "3.4.2",
62+
"rollup-plugin-node-externals": "^8.0.1",
6263
"sass": "^1.77.8",
6364
"sinon": "^18.0.0",
6465
"stylelint-scss": "^6.10.0",

vite.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import eslintPlugin from "vite-plugin-eslint";
77
import path from "path";
88
import { nodePolyfills } from "vite-plugin-node-polyfills";
99
import compress from "vite-plugin-compress";
10+
import depsExternal from "rollup-plugin-node-externals";
1011

1112
dns.setDefaultResultOrder("verbatim");
1213

@@ -36,7 +37,8 @@ export default defineConfig({
3637
}),
3738
eslintPlugin,
3839
nodePolyfills(),
39-
compress
40+
compress,
41+
depsExternal()
4042
],
4143
resolve: {
4244
alias: {

0 commit comments

Comments
 (0)