Skip to content

Commit 394f3a5

Browse files
committed
Devtools/app build config fix
1 parent cdaf586 commit 394f3a5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

packages/app/vite.config.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,28 @@ import { FileSystemIconLoader } from 'unplugin-icons/loaders'
66

77
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
88

9-
// https://vitejs.dev/config/
109
export default defineConfig({
1110
resolve: {
1211
alias: {
1312
'@': path.resolve(__dirname, './src'),
1413
'@core': path.resolve(__dirname, './src/core'),
15-
'@components': path.resolve(__dirname, './src/components')
16-
}
14+
'@components': path.resolve(__dirname, './src/components'),
15+
'@wdio/devtools-service/types': path.resolve(
16+
__dirname,
17+
'../service/dist/types.js'
18+
),
19+
},
1720
},
1821
plugins: [
1922
Icons({
2023
compiler: 'web-components',
2124
webComponents: {
2225
autoDefine: true,
23-
shadow: false
26+
shadow: false,
2427
},
2528
customCollections: {
26-
custom: FileSystemIconLoader('./src/assets/icons')
27-
}
28-
})
29+
custom: FileSystemIconLoader('./src/assets/icons'),
30+
},
31+
}),
2932
],
30-
build: {
31-
rollupOptions: {
32-
external: ['@wdio/devtools-service/types']
33-
}
34-
}
3533
})

0 commit comments

Comments
 (0)