initial commit
This commit is contained in:
21
config/esbuild.common.ts
Normal file
21
config/esbuild.common.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import type esbuild from 'esbuild';
|
||||
|
||||
export default {
|
||||
entryPoints: {
|
||||
'index': './src/index',
|
||||
},
|
||||
entryNames: '[name]',
|
||||
assetNames: '[name]',
|
||||
bundle: true, // 用于内部方法调用,请勿修改
|
||||
minify: false, // 用于内部方法调用,请勿修改
|
||||
loader: {},
|
||||
outdir: './dist/',
|
||||
sourcemap: undefined,
|
||||
platform: 'browser', // 用于内部方法调用,请勿修改
|
||||
format: 'iife', // 用于内部方法调用,请勿修改
|
||||
globalName: 'edaEsbuildExportName', // 用于内部方法调用,请勿修改
|
||||
treeShaking: true,
|
||||
ignoreAnnotations: true,
|
||||
define: {},
|
||||
external: [],
|
||||
} satisfies Parameters<(typeof esbuild)['build']>[0];
|
||||
Reference in New Issue
Block a user