Skip to content

Commit c9df38f

Browse files
fix(preserveModules): remove external deps
Co-authored-by: Jack Shelton <[email protected]>
1 parent 24d64f4 commit c9df38f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/kit-headless/vite.config.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,7 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
99
import tsconfigPaths from 'vite-tsconfig-paths';
1010
import pkg from './package.json';
1111

12-
const {
13-
dependencies = {
14-
'@floating-ui/dom': '^1.6.5',
15-
'@floating-ui/core': '^1.6.2',
16-
'@oddbird/popover-polyfill': '0.4.3',
17-
'focus-trap': '7.5.4',
18-
'body-scroll-lock-upgrade': '^1.1.0',
19-
},
20-
peerDependencies = {},
21-
} = pkg as any;
12+
const { dependencies = {}, peerDependencies = {} } = pkg as any;
2213
const makeRegex = (dep: any) => new RegExp(`^${dep}(/.*)?$`);
2314
const excludeAll = (obj: any) => Object.keys(obj).map(makeRegex);
2415

0 commit comments

Comments
 (0)