You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the @rollup/plugin-typescript plugin in conjunction with the @rollup/plugin-node-resolve plugin should allow rollup to parse TypeScript in files outside the main directory:
Rollup Version
3.25.1
Operating System (or Browser)
Browser
Node Version (if applicable)
16.14.2
Link To Reproduction
https://stackblitz.com/edit/stackblitz-starters-tyztyr?file=packages%2Fmy-package-with-rollup%2Frollup.config.mjs
Reproduction Steps
cd packages/my-package-with-rollup/
npm run build
Expected Behaviour
Using the
@rollup/plugin-typescript
plugin in conjunction with the@rollup/plugin-node-resolve
plugin should allow rollup to parse TypeScript in files outside the main directory:Actual Behaviour
Rollup errors:
[!] RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript)
.Including outside files in the
include
pattern does nothing as well:The
filterRoot
set to false also doesn't fix it, which I would expect it to based on the docs:The text was updated successfully, but these errors were encountered: