a781a4f27e
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
11 lines
218 B
JavaScript
11 lines
218 B
JavaScript
import * as esbuild from 'esbuild'
|
|
|
|
await esbuild.build({
|
|
entryPoints: ['./dist/index.js'],
|
|
outfile: './dist/index.cjs',
|
|
bundle: true,
|
|
platform: 'node',
|
|
define: {
|
|
'import.meta.url': '__filename',
|
|
},
|
|
})
|