File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,16 @@ import { viteStaticCopy } from 'vite-plugin-static-copy';
99import tsconfigPaths from 'vite-tsconfig-paths' ;
1010import pkg from './package.json' ;
1111
12- const { dependencies = { } , peerDependencies = { } } = pkg as any ;
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 ;
1322const makeRegex = ( dep : any ) => new RegExp ( `^${ dep } (/.*)?$` ) ;
1423const excludeAll = ( obj : any ) => Object . keys ( obj ) . map ( makeRegex ) ;
1524
@@ -62,11 +71,9 @@ export default defineConfig({
6271 } ,
6372 rollupOptions : {
6473 external : [
65- '@floating-ui/dom' ,
66- '@floating-ui/core' ,
67- '@oddbird/popover-polyfill' ,
68- 'focus-trap' ,
69- 'body-scroll-lock-upgrade' ,
74+ / ^ n o d e : .* / ,
75+ ...excludeAll ( dependencies ) ,
76+ ...excludeAll ( peerDependencies ) ,
7077 ] ,
7178 output : {
7279 preserveModules : true ,
You can’t perform that action at this time.
0 commit comments