packem/packem

No imports mangling for TypeScript imports

Opened this issue · 0 comments

Packem's resolver is not ubiquitous when it comes to mangling imports for custom file types. Originally, it was highlighted in #6, ostensibly, but this issue specifically reflects on the mangler since the bundled outputs don't seem to contain any traces of linking in the module graph.

I used onModuleBundle with a valid TypeScript config built specifically to fit the tsc API. A few of the options for the TypeScript config are listed below:

{
  skipLibCheck: true,
  isolateModules: false,
  suppressOutputPathCheck: true
}

Note: isolateModules was tested and didn't produce better results. The commit on this can be found here.