Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

[Zhen] fix the babel-loader config.#91

Merged
alokmenghrajani merged 2 commits intosquare:masterfrom
tangzhen:master
Apr 12, 2019
Merged

[Zhen] fix the babel-loader config.#91
alokmenghrajani merged 2 commits intosquare:masterfrom
tangzhen:master

Conversation

@tangzhen
Copy link
Contributor

@tangzhen tangzhen commented Apr 2, 2019

The dist file doesn't convert by babel env preset(e.g. dist js file contain the arrow function, which can't work for ie 11), fix it.

@CLAassistant
Copy link

CLAassistant commented Apr 2, 2019

CLA assistant check
All committers have signed the CLA.

webpack.prod.js Outdated
},

test: /\.js$/
test: /\.m?js$/
Copy link
Contributor

@alokmenghrajani alokmenghrajani Apr 5, 2019

Choose a reason for hiding this comment

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

what is .mjs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This config is copied from webpack babel-loader document. .mjs is the es module js file extension.
For this project, don't need it. I can update it to ".js"

@alokmenghrajani
Copy link
Contributor

LGTM. I can merge once the CLA is signed.

@tangzhen
Copy link
Contributor Author

LGTM. I can merge once the CLA is signed.

Done.

@alokmenghrajani alokmenghrajani merged commit 46050db into square:master Apr 12, 2019
@alokmenghrajani
Copy link
Contributor

Thanks. Do you need a npm release or are you ok with just the fix in master?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants