-
Notifications
You must be signed in to change notification settings - Fork 61
Zero-byte in output #96
Comments
I believe this happens when |
This is not a critical, cause I just replace zero-byte with empty string, but definitely it would be interesting to track this down. |
Actually, I found this is done by intent. 🤔 rollup-plugin-typescript/src/index.js Lines 23 to 24 in be12782
Maybe this works in frontend bundles, but when the target is cjs/node it leads to corruption of every file which includes typescript-helpers which means, every file. Is it an ugly workaround?
|
Yes, this is intentional, and probably done because of what Rollup's documentation recommends to plugin authors in https://github.com/rollup/rollup/wiki/Plugins#conventions:
Replacing this plugin's own helper functions with |
Hello, I'm experimenting with this plugin, and trying to achieve smooth experience both for frontend and backend builds.
For now I got pretty simple setup for «backend»:
Somehow NUL-byte is inserted inside
require('typescript-helpers');
.I see
'\'use strict\';\n\nrequire(\'\u0000typescript-helpers\');\n…
when I debug output.What on earth could cause this weird insertion to happen?
[email protected]
[email protected]
[email protected]
v7.5.0
The text was updated successfully, but these errors were encountered: