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({
|
build({
|
||||||
...sharedConfig,
|
...sharedConfig,
|
||||||
platform: "node",
|
platform: "node",
|
||||||
|
format,
|
||||||
outfile,
|
outfile,
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
glob(`${process.cwd()}/src/**/*.hbs`, {}, (err, files) => {
|
glob(`${process.cwd()}/src/**/*.hbs`, {}, (err, files) => {
|
||||||
|
|
Loading…
Reference in New Issue