2024-08-26 18:50:33 +08:00
|
|
|
import { defineConfig, moduleTools } from '@modern-js/module-tools';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [moduleTools()],
|
|
|
|
buildPreset: 'npm-library',
|
2025-03-07 17:20:18 +08:00
|
|
|
buildConfig: {
|
2025-03-09 21:50:20 +08:00
|
|
|
input: {
|
|
|
|
index: './src/index.ts',
|
|
|
|
img: './src/img/index.ts',
|
|
|
|
constants: './src/constants/index.ts',
|
|
|
|
extractor: './src/extractor/index.ts',
|
|
|
|
'extractor-debug': './src/extractor/debug.ts',
|
|
|
|
fs: './src/node/fs.ts',
|
|
|
|
utils: './src/utils.ts',
|
2025-03-31 19:22:39 +08:00
|
|
|
logger: './src/logger.ts',
|
2025-04-17 15:09:59 +08:00
|
|
|
common: './src/common.ts',
|
2025-03-09 21:50:20 +08:00
|
|
|
'us-keyboard-layout': './src/us-keyboard-layout.ts',
|
2025-04-24 22:54:52 +08:00
|
|
|
env: './src/env.ts',
|
2025-05-16 17:16:56 +08:00
|
|
|
types: './src/types/index.ts',
|
2025-03-09 21:50:20 +08:00
|
|
|
},
|
2025-03-07 17:20:18 +08:00
|
|
|
target: 'es2020',
|
2025-03-09 21:50:20 +08:00
|
|
|
dts: {
|
|
|
|
respectExternal: true,
|
|
|
|
},
|
2025-03-07 17:20:18 +08:00
|
|
|
},
|
2024-08-26 18:50:33 +08:00
|
|
|
});
|