egoist / rollup-plugin-esbuild

Use ESBuild with Rollup to transform ESNext and TypeScript code.
MIT License
630 stars 41 forks source link

Monorepo path resolving problem #337

Closed julienchazal closed 2 years ago

julienchazal commented 2 years ago

Hello

My project structure is like this :

node_modules
package.json
tsconfig.json
app1/
  node_modules
  src/
  package.json
  tsconfig.json
  rollup.config.js
app2/
  node_modules
  src/
  package.json
  tsconfig.json
  rollup.config.js
shared/
  components/
     *.svelte
  utils/
    *.ts

when i build from app2/rollup.config.js, i get error like Could not resolve ../../shared/utils/foo.ts i tried using esbuild stdin.resolveDir option but it works only with Build API i think

Do you have any ideas how i can solve this please ?

julienchazal commented 2 years ago

My bad, it was not a rollup-plugin-esbuild issue !