-
-
Notifications
You must be signed in to change notification settings - Fork 372
fix: Dependency install loader #235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/lib/webpack/proxy-loader.js
Outdated
| this.query.__proxy_loader__ = { loader: options.loader, cwd: options.cwd }; | ||
|
|
||
| // remove proxy-loader options and make this.query act as requested loader query | ||
| swapOptions(this, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clever.
src/lib/webpack/proxy-loader.js
Outdated
| } | ||
|
|
||
| // run loader | ||
| return loader.bind(this)(source, map); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use loader.call(this, source, map).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot how to ES5
developit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amaze
Webpack checks if all loaders are present so we have to pass source to proxy-loader