Skip to content

add new feature: addBabelPluginOutSideOfApp and update snapshot#123

Merged
with-heart merged 5 commits intoarackaf:masterfrom
Terryand:master
Jul 17, 2019
Merged

add new feature: addBabelPluginOutSideOfApp and update snapshot#123
with-heart merged 5 commits intoarackaf:masterfrom
Terryand:master

Conversation

@Terryand
Copy link
Copy Markdown
Contributor

@Terryand Terryand commented Jul 8, 2019

  • update getBabelLoader as cra2/3 acturally has two babel-loader relues. One is for appSrc and the other is for outside of app( like node_modules ).Different them by include/exclude options;
  • add new feature: addBabelPluginOutSideOfApp. Now you can add plugin to the babel-loader which is for outside of app. Of course, test suits is updated together
  • update snapshots: now the snapshots is more like to real cra2/3 webpack-config;

…he config will be more like cra2/3 webpack-config);user can customize babel loader for outside of the app
Copy link
Copy Markdown
Collaborator

@with-heart with-heart left a comment

Choose a reason for hiding this comment

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

Awesome work! This looks great @Terryand.

I think the only thing I'd change now that I'm thinking about it would be to call them addExternalBabelPlugin and addExternalBabelPlugins. I think that combined with docs in the readme would make it very obvious what they do. OutSideOfApp is confusing imo.

What do you think?

Also could you add examples of each at the bottom of readme.md?

Comment thread .gitignore Outdated
Copy link
Copy Markdown
Collaborator

@with-heart with-heart left a comment

Choose a reason for hiding this comment

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

Sorry for taking so long to get back to you. It's been a busy couple of weeks for me!

I added a few suggestions for api.md. If they look good to you, we can get this merged :)

Comment thread api.md Outdated
Comment thread api.md Outdated
@Terryand
Copy link
Copy Markdown
Contributor Author

That's ok and thanks a lot for these suggestions.
The api.md is be modified. Look forward to merging.

@with-heart with-heart merged commit 156d208 into arackaf:master Jul 17, 2019
@with-heart
Copy link
Copy Markdown
Collaborator

Great work @Terryand!

@with-heart
Copy link
Copy Markdown
Collaborator

Published as v0.3.0 :)

@with-heart
Copy link
Copy Markdown
Collaborator

Hey @Terryand, thanks again! I've added you to the project's contributors list :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants