jhnns / rewire-webpack

Dependency injection for webpack bundles
The Unlicense
121 stars 20 forks source link

rewire doesn't work within AMD modules #15

Open hc2p opened 8 years ago

hc2p commented 8 years ago

the issue might be related to this bug but i'm not sure https://github.com/jhnns/rewire-webpack/issues/12

I'm running jasmine under Karma using webpack for packaging. When writing my specs in AMD notation, i can't rewire modules. It works when changing to CommonJS notation. It seems webpack is not able to replace the module name with the internal module-number.