Closed liangpijun closed 2 years ago
esbuild .build({ entryPoints: await globFils(), bundle: false, splitting: false, outdir: path.join(process.cwd(), 'dist'), format: 'cjs', platform: 'node', watch: !isPro && { onRebuild(err, result) { if (err) console.error(err) }, }, minify: false, sourcemap: false, color: true, loader: { '.ts': 'tsx', '.tsx': 'tsx', }, plugins: [dtsPlugin()], })
will have a look when i get time, could you provide a reproduceable repo or your file structure and where esbuild is being run?