Open givanse opened 5 years ago
Debugged a little and got to this line in Rollup https://github.com/rollup/rollup/blob/dd00ff5e480cacc368cc34dff7c2f1a3936d8d0f/src/ModuleLoader.ts#L353
In this location, the code has been pushed through the Rollup plugins but the code has not been transformed, code
and originalCode
are identical. So I guess that is why down the road we get the Unexpected token
error.
Based on that, I would think this is a bug within rollup
/broccoli-rollup-typescript
. However, the error doesn't show up when broccoli-rollup
is removed from the equation.
Adding
rollup-plugin-typescript
results on:Running Rollup alone, with the same config, works fine.
Repo with test case: https://github.com/givanse/broccoli-rollup-typescript-test-case