File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 4242 "dev" : " vite --host" ,
4343 "snowbox" : " cross-env VITE_DEV_LANDING=examples/snowbox vite --host" ,
4444 "preview:build" : " vite build --watch -c vite.config.preview.ts" ,
45+ "preview:build:ci" : " vite build -c vite.config.preview.ts" ,
4546 "preview:preview" : " vite preview -c vite.config.preview.ts" ,
4647 "preview" : " conc --kill-others 'npm run build' 'npm run preview:build' 'npm run preview:preview'" ,
4748 "build" : " vite build --watch" ,
Original file line number Diff line number Diff line change 11import { resolve } from 'node:path'
2+
23import { defineConfig } from 'vite'
34
5+ import commonJs from 'vite-plugin-commonjs'
6+ import vue from '@vitejs/plugin-vue'
7+ import enrichedConsole from './vitePlugins/enrichedConsole.js'
8+
49export default defineConfig ( {
10+ plugins : [
11+ // @ts -expect-error | commonJs dts is broken
12+ commonJs ( ) ,
13+ vue ( {
14+ template : {
15+ compilerOptions : {
16+ isCustomElement : ( tag ) => tag . includes ( '-' ) ,
17+ } ,
18+ } ,
19+ } ) ,
20+ enrichedConsole ( ) ,
21+ ] ,
522 build : {
623 outDir : '.dist.preview' ,
724 rollupOptions : {
@@ -15,6 +32,6 @@ export default defineConfig({
1532 port : 1235 ,
1633 } ,
1734 optimizeDeps : {
18- entries : [ 'snowbox' ] ,
35+ entries : [ 'snowbox' , 'iceberg' ] ,
1936 } ,
2037} )
You can’t perform that action at this time.
0 commit comments