A minimal reproduction environment for issues with rollup-plugin-typescript2
Please do your best to create a minimal example that reproduces this behavior.
Minimal reproductions help us find the root cause of an issue much more expediently than trying to interpret and disentangle a complicated repo. The process of creating a minimal reproduction also often helps users find a misconfiguration in their code. It could also help you identify the root cause yourself and potentially create a Pull Request to fix it!
- Find this environment on StackBlitz
- Click "Fork"
- Add your deps in
package.json
and runnpm install
in the terminal - Add your configuration in
tsconfig.json
androllup.config.js
- Modify
src/index.ts
to provide a minimal example of the problem you have run into - Run
npm run build
and make sure you can reproduce the problem- If you cannot reproduce this problem minimally, the issue may be due to misconfiguration (and would therefore not be a bug in rpt2)
- Can run
npm run tsc
to double-check thattsc
does not have the same problem- If
tsc
has the same problem, then it is very possible the issue is in TypeScript itself
- If
- Click "Share" and copy the link into the issue that you are filing
- Make sure to follow the steps in the issue template