Floffah / esbuild-plugin-d.ts

🔌 Build Typescript declarations with ESBuild
http://npm.im/esbuild-plugin-d.ts
MIT License
57 stars 6 forks source link

[plugin: dts-plugin] No config file found #9

Closed liangpijun closed 2 years ago

liangpijun commented 2 years ago

image

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()],
    })
Floffah commented 2 years ago

will have a look when i get time, could you provide a reproduceable repo or your file structure and where esbuild is being run?