From 09a4c878db92a020382b6cf04576b9a62cc22e3c Mon Sep 17 00:00:00 2001 From: Jo Liss Date: Sat, 2 Mar 2024 10:23:30 +0000 Subject: [PATCH] Do not bundle meriyah dependency --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index e4d7f79..0aa2819 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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: { @@ -19,6 +22,7 @@ export default defineConfig({ exclude: ["src/index.test.ts"] }), ], + external: nodeModules, }, }, }); \ No newline at end of file