-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some type-only TS files are ignored when using tsconfig
files
?
#409
Comments
skipped parts of issue templateYou didn't answer question 2 and 3 of the issue template, and did not provide a Specifically, I noted that there's 9 other plugins and a TS transformer and other complexity here, so it's far from a minimal repro, and a repro itself was not provided. The plugin order also does not match this plugin's compatibility list, and no rationale was given for why either. rpt2 versionPer the versions listed, you're also on an older version of rpt2, edge cases seem to not applyGiven the lack of repro, I can only hypothesize why this may occur, as no further investigation is possible without a repro. At the very least the contents of Without knowing the contents of the files, the only edge-cases in rpt2 are around type-only imports, i.e. #211 (which will soon be fixed by #406). Given that this produces a That's the only existing issue (that has a repro) that I can think of off the top of my head that might cause this kind of problem As such, there's really nothing else that can be done without a repro. Please provide a minimal repro as the issue template requests. EDIT: Per the repro provided below, |
@agilgur5 npm install && npm run build:esm Hope that will help. |
Thanks for the repro @ZHHHH9980, this helps quite a bit. Per the repro provided, That being said, I'm not sure why the workaround (from #175) isn't working in this case. I'll have to investigate that with the repro. This might be fixable with a simple change to the
Just to clarify, the issue template defines "minimal" with the oft-cited StackOverflow explanation. |
tsconfig
files
?
duplicate of #211
So your repro has a different So this duplicates #211, which will be fixed by #406. workaround availableThat being said, since this is a duplicate and you are using "files": ["src/lib/index.tsx", "src/lib/component.ts"], This will get TS to detect the file and rpt2 will generate declarations for it. That workaround should suffice in the meantime until #406 is reviewed, merged, and released. |
What happens and why it is incorrect
there are many files ending in
*.ts
in the src, but only some have been transpiledtsc
have the same output? If so, please explain why this is incorrect behaviorNO,
tsc
run as expectly.here's file structure:
but rpt2 seems to ignore the file named
component.ts
:Environment
Versions
:rollup.config.js
:tsconfig.json
:package.json
plugin output with verbosity 3
:The text was updated successfully, but these errors were encountered: