react18-tools / esbuild-plugin-remove-duplicate-imports

ESBuild plugin to remove duplicate import and require statements from the minified build.
Mozilla Public License 2.0
3 stars 0 forks source link

Adding plugin results in no output #2

Open mmarcuccio opened 1 month ago

mmarcuccio commented 1 month ago
  await build({
    bundle: true,
    target: 'es6',
    format: 'esm',
    entryPoints,
    outdir: './dist/esm',
    logLevel: 'info',
    plugins: [
      nodeExternalsPlugin({
        dependencies: false,
        devDependencies: false,
        peerDependencies: true,
      }),
      rdiPlugin(),
    ],
  })

I see the file listed in the CLI output, but afterwards no file is in the dist/esm directory.

mayank1513 commented 1 month ago

Could you please provide us with the minimal reproducible example so that we can understand and fix the issue ASAP.

mayank1513 commented 1 month ago

Please refer to, or create your project setup using https://github.com/react18-tools/turborepo-template/ for the best experience.