2022-01-07 19:45:59 +08:00
|
|
|
/**
|
|
|
|
* {build}
|
|
|
|
* @author yutent<yutent.io@gmail.com>
|
|
|
|
* @date 2021/08/09 11:59:41
|
|
|
|
*/
|
|
|
|
|
|
|
|
const Es = require('esbuild')
|
|
|
|
|
|
|
|
Es.build({
|
|
|
|
entryPoints: ['src/index.mjs'],
|
|
|
|
outfile: 'dist/index.mjs',
|
|
|
|
platform: 'node',
|
|
|
|
bundle: true,
|
|
|
|
minify: true,
|
|
|
|
format: 'esm'
|
|
|
|
})
|
|
|
|
Es.build({
|
|
|
|
entryPoints: ['src/index.mjs'],
|
|
|
|
outfile: 'dist/index.js',
|
|
|
|
platform: 'node',
|
|
|
|
bundle: true,
|
2022-01-08 16:00:36 +08:00
|
|
|
minify: true
|
2022-01-07 19:45:59 +08:00
|
|
|
})
|