Esbuild, build esm
This commit is contained in:
parent
b91677f0ce
commit
a213475041
|
@ -59,9 +59,16 @@ function runBuild(entry, outfile) {
|
|||
],
|
||||
}
|
||||
|
||||
const { compilerOptions } = tsconfigPathPluginContent
|
||||
const format =
|
||||
compilerOptions.target === "es6" && compilerOptions.module !== "commonjs"
|
||||
? "esm"
|
||||
: undefined
|
||||
|
||||
build({
|
||||
...sharedConfig,
|
||||
platform: "node",
|
||||
format,
|
||||
outfile,
|
||||
}).then(result => {
|
||||
glob(`${process.cwd()}/src/**/*.hbs`, {}, (err, files) => {
|
||||
|
|
Loading…
Reference in New Issue