vite#defineConfig JavaScript Examples
The following examples show how to use
vite#defineConfig.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: vite.config.js From viv with MIT License | 6 votes |
configAvivator = defineConfig({
plugins: [react(), ...plugins],
base: './',
root: 'avivator',
publicDir: 'avivator/public',
worker: {
format: "es",
rollupOptions: { inlineDynamicImports: true },
},
resolve: {
alias: {
'@hms-dbmi/viv': resolve(__dirname, 'src'),
'react': resolve(__dirname, 'avivator/node_modules/react'),
'react-dom': resolve(__dirname, 'avivator/node_modules/react-dom'),
},
},
})
Example #2
Source File: vite.config.js From viv with MIT License | 6 votes |
configViv = defineConfig({
plugins,
worker: {
format: "es",
rollupOptions: { inlineDynamicImports: true },
},
build: {
target: 'esnext',
minify: false,
lib: {
entry: resolve(__dirname, 'src/index.js'),
formats: ['es'],
},
rollupOptions: {
// All non-relative paths are external
external: [/^[^.\/]|^\.[^.\/]|^\.\.[^\/]/],
},
},
})