externalize pl-api deps
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
c4bcdf5f4b
commit
595c16ace2
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,8 @@ import { resolve } from 'path';
|
|||
import { defineConfig } from 'vite';
|
||||
import dts from 'vite-plugin-dts';
|
||||
|
||||
import pkg from './package.json';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [dts({ include: ['lib'], insertTypesEntry: true })],
|
||||
build: {
|
||||
|
@ -15,5 +17,8 @@ export default defineConfig({
|
|||
},
|
||||
target: 'esnext',
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
external: Object.keys(pkg.dependencies),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue