Skip to content

Commit a623a8c

Browse files
committed
不打包依赖npm包
1 parent a53a7a2 commit a623a8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig({
1616
plugins: [
1717
vue(),
1818
dts({
19+
// rollupTypes: true,
1920
tsconfigPath: './tsconfig.app.json',
2021
beforeWriteFile: (filePath, content) => {
2122
writeFileSync(filePath.replace('.d.ts', '.d.cts'), content);
@@ -35,7 +36,7 @@ export default defineConfig({
3536
rollupOptions: {
3637
// make sure to externalize deps that shouldn't be bundled
3738
// into your library
38-
external: ['vue'],
39+
external: ['vue', 'reflect-metadata', 'inversify'],
3940
output: {
4041
compact: true,
4142
// Provide global variables to use in the UMD build

0 commit comments

Comments
 (0)