Skip to content

Commit

Permalink
Do not bundle meriyah dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
joliss committed Mar 2, 2024
1 parent 2b77646 commit 6bc3ac9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { defineConfig } from "vite";

import typescript from "@rollup/plugin-typescript";
import path from "path";
import { readdirSync } from "fs";

const nodeModules = readdirSync(path.resolve(__dirname, 'node_modules'));

export default defineConfig({
build: {
Expand All @@ -19,6 +22,8 @@ export default defineConfig({
exclude: ["src/index.test.ts"]
}),
],
// do not bundle Node dependencies
external: nodeModules,
},
},
});

0 comments on commit 6bc3ac9

Please sign in to comment.