Closed hervegareste closed 7 months ago
\u0000
added by rollup and its own plugins when they need to create synthetic import. Most common example you see it is commonjs plugin.
You can see it in their tests for example https://github.com/rollup/plugins/blob/2a19079892f0bef53b557da965339cdef0a13a93/packages/commonjs/test/fixtures/form/multi-entry-module-exports/output1.js#L2
Hi, Working on ubuntu 20, node 18, I export list template reports using this configuration in my vite.config.js :
I discovered that my output file contains a \x00 char at the beginning of some (always the same) filenames. Opening the report with vi, there are '^@' at the beginning of some names. Opening it with a text editor, the file is not readable (full of ideograms).
I tried to understand where this char is added, but could not find. All I know is that when I print the bundle variable in index.ts line 200, it is already present. A simple solution would be to call replace('\0', '') on file const line 103 of render-template.ts, even if it does not fix the original problem.