-
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
outDir
set to process.cwd()
cause TS5055
error easily
#83
Comments
simply change |
This is by design -- typescript refuses to overwrite input files by output files so you don't destroy all your source code :) |
@ezolenko , but TypeScript 2.9 support import json file as es6 module now |
may be it's a typescript bug microsoft/TypeScript#24715 |
nvm, I'll do a workaround -- it works as intended if you use tsc directly, but shouldn't trip the plugin up. |
@grayflow I added your workaround, check if master works for you |
@ezolenko , it works |
@ezolenko , another problem: rollup-plugin-typescript2 would not respect mapRoot option in tsconfig.json |
@grayflow I don't think I can respect mapRoot -- I'm not writing out maps myself, I give them to rollup and it meshes them with maps generated by other plugins on the chain and then generates its own mapping for the bundle. For example if you add uglify plugin, maps will go |
outDir
set to process.cwd()
cause TS5055
error easily
What happens and why it is wrong
Environment
Versions
rollup.config.js
tsconfig.json
package.json
plugin output with verbosity 3
The text was updated successfully, but these errors were encountered: