2024-08-04 08:28:19 +08:00
|
|
|
import { defineConfig, moduleTools } from '@modern-js/module-tools';
|
2024-07-23 16:25:11 +08:00
|
|
|
|
|
|
|
export default defineConfig({
|
2024-08-15 17:59:43 +08:00
|
|
|
buildConfig: [
|
|
|
|
{
|
|
|
|
asset: {
|
|
|
|
svgr: true,
|
|
|
|
},
|
|
|
|
format: 'umd',
|
|
|
|
umdModuleName: 'midSceneVisualizer',
|
|
|
|
autoExternal: false,
|
|
|
|
externals: [],
|
|
|
|
dts: false,
|
|
|
|
platform: 'browser',
|
|
|
|
outDir: 'dist/report',
|
|
|
|
minify: {
|
|
|
|
compress: true,
|
|
|
|
},
|
2024-07-28 17:24:09 +08:00
|
|
|
},
|
2024-08-15 17:59:43 +08:00
|
|
|
{
|
|
|
|
asset: {
|
|
|
|
svgr: true,
|
|
|
|
},
|
|
|
|
format: 'esm',
|
|
|
|
input: {
|
|
|
|
index: 'src/index.tsx',
|
2024-07-23 16:25:11 +08:00
|
|
|
},
|
2024-08-15 17:59:43 +08:00
|
|
|
autoExternal: false,
|
|
|
|
externals: [],
|
|
|
|
dts: false,
|
|
|
|
platform: 'browser',
|
|
|
|
minify: {
|
|
|
|
compress: false,
|
|
|
|
},
|
|
|
|
},
|
2024-07-23 16:25:11 +08:00
|
|
|
],
|
2024-08-15 17:59:43 +08:00
|
|
|
plugins: [moduleTools()],
|
2024-07-23 16:25:11 +08:00
|
|
|
buildPreset: 'npm-component',
|
|
|
|
});
|