Skip to content
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

fix: generated loader template #1720

Merged
merged 6 commits into from
Aug 2, 2020
Merged

fix: generated loader template #1720

merged 6 commits into from
Aug 2, 2020

Conversation

snitin315
Copy link
Member

What kind of change does this PR introduce?
bugfix

Did you add tests for your changes?
Yes
If relevant, did you update the documentation?
NA
Summary
Fixes #1719

Does this PR introduce a breaking change?
no

Other information

@@ -3,9 +3,9 @@
* https://webpack.js.org/contribute/writing-a-loader
*/

export default function loader(source) {
module.exports = function loader(source) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should implement --babel option to this in future (put babel config and generate es module syntax)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will implement in future PR.

@anshumanv
Copy link
Member

Great that we're at this,

We should also get back to #1581 with proper handling, @snitin315 can you handle it next?

@snitin315
Copy link
Member Author

We should also get back to #1581 with proper handling, @snitin315 can you handle it next?

Sure 👍🏻

anshumanv
anshumanv previously approved these changes Aug 1, 2020
alexander-akait
alexander-akait previously approved these changes Aug 1, 2020
@webpack-bot
Copy link

@jamesgeorge007 Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@evilebottnawi Please review the new changes.

shivaylamba
shivaylamba previously approved these changes Aug 1, 2020
Co-authored-by: James George <jamesgeorge998001@gmail.com>
@snitin315 snitin315 merged commit a380a78 into next Aug 2, 2020
@snitin315 snitin315 deleted the fix/loader branch August 2, 2020 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error using a loader generated via CLI
6 participants