@Rich_Harris But it won't transpile 'foo/index' to just 'foo', right? Which I feel like what is needed for AMD interop
@_jayphelps Could add a `getModuleName` option. I'd accept a PR for that. Relevant files: https://github.com/babel/babel/blob/master/src/babel/transformation/modules/_default.js#L185 … https://github.com/babel/babel/blob/master/src/babel/transformation/file/options.json#L23 …
-
-
@sebmck@Rich_Harris What if moduleId was overloaded with function, which would be called with default and uses returned string value -
@sebmck@Rich_Harris e.g. moduleId(name) { return name == 'foo/index' ? 'foo' : name; }
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 