Open andrewnicols opened 1 year ago
Reproduction repository here: https://github.com/andrewnicols/bugreport-systemimport-19
And a unit test fixture demonstrating the issue here: https://github.com/andrewnicols/babel-plugin-system-import-transformer/commit/bugreport19
If the moduleIds babel configuration is configured, then the wrong file-level module name will be used whenever a dynamic import is transformed using this plugin.
For example, the following:
Should generate a module:
Unfortunately the imported module name is hoisted to the top of the file and the wrong moduleId is inserted into the built file: