FormidableLabs / webpack-alternate-require-loader

Webpack alternate require loader
MIT License
2 stars 1 forks source link

webpack2: Can't add property _opts, object is not extensible #4

Open tadaskay opened 7 years ago

tadaskay commented 7 years ago

Would it be possible to add webpack2 support?

I'm getting the following:

Module build failed: TypeError: Can't add property _opts, object is not extensible

It works if I remove the if (!this._opts block, but probably it has performance hit?

ryan-roemer commented 6 years ago

Yep. Confirmed. I'll tackle this as a part of https://github.com/FormidableLabs/webpack-alternate-require-loader/issues/5