Closed OliverJAsh closed 9 years ago
If I change foo.js
to import ./bar
instead of ./bar-es6
(ES5 instead of ES6), the error disappears:
❯ node main.js
foo: bar: bar
main: foo: foo
It only happens when I have nested/transitive ES6 imports.
I have reduced my test case now. See the updated desc.
Closed in favour of #41 (reduced test case).
I have written an ES6 transformer. The source gets transformed just fine, but when I have transitive (nested) ES6 dependencies, I get an error.
You can see my isolated test case at https://gist.github.com/4f8b74153a2f7fdb9f70.
In my example, the dependency tree is: main > foo > bar. main requires foo as a sandboxed module, applying the ES6 source transformer. foo requires bar (using ES6 import syntax).
It seems like the ES6 source transformer does not get applied to the transitive dependency (bar).