This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
Is this strategy for TS integration in rollup viable? #9
Closed
Description
So, I'm playing with this plugin and started to hit various transpilation problems (mostly around classes not ES6-exported properly. So I've started to dig into the source of those pbs and it turns out that by default tsc
doesn't allow ES6 module with ES5 target combination of options. If you try to combine those 2 options together you get:
error TS1204: Cannot compile modules into 'es2015' when targeting 'ES5' or lower.
So it seems, on the surface, that tsc is not meant to output ES5 while preserving ES6 import / exports...
I guess that we are not getting this error from rollup since we are calling typescript.transpileModule
where the check might be omitted (?)
cc: @robwormald