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

Document babel target env configuration #1144

Merged

Conversation

sudo-suhas
Copy link
Contributor

What this PR does

This adds a new file for "Babel Configuration" and links it from SUMMARY.md. Specifically, it explains the reason why we have browser targets configuration in two places.

Why

@LinusBorg in #1083

So I guess we will have to bite the bullet and revert to having the browserslist in both package.json and .babelrc, and make a note in the docs to make people aware that they have to make changes to browserlist in two places until Babel 7 has landed.

As to why I am adding a new file, currently there isn't a section dealing with the Babel setup. Since there is a file which explains linter configuration, I think it makes sense to have a file to document babel related things.

Preview link - sudo-suhas/webpack:docs/babel.md@docs-babel-preset-env

Note: This should be merged in after #1083.

Copy link
Contributor

@LinusBorg LinusBorg left a comment

Choose a reason for hiding this comment

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

Thanks, this looks exactly like what I had in mind!!

@sudo-suhas
Copy link
Contributor Author

Lol.. Glad to hear that.

@LinusBorg LinusBorg merged commit caa259a into vuejs-templates:develop Dec 9, 2017
@sudo-suhas sudo-suhas deleted the docs-babel-preset-env branch December 9, 2017 10:04
LinusBorg added a commit that referenced this pull request Dec 11, 2017
* develop:
  remove unnecessary exceptions
  bump version to 1.2.6
  Add JX support (close #1146)
  Automatically install Dependencies and fix lint errors (#1133)
  Set `allChunks: true` by default (close #1110) (#1149)
  airbnb eslint config compatibility with vuex (#1003)
  Document babel target env configuration (#1144)
  Revert "remove uneccessary target.browsers (#1004)" (#1083)
  fix filename of `.eslintignore` (#1136)
  webpack.conf.js is not needed in jest and e2e (#1135)

# Conflicts:
#	template/test/e2e/custom-assertions/elementCount.js
shenron pushed a commit to shenron/webpack that referenced this pull request Mar 20, 2018
shenron pushed a commit to shenron/webpack that referenced this pull request Mar 20, 2018
* develop:
  remove unnecessary exceptions
  bump version to 1.2.6
  Add JX support (close vuejs-templates#1146)
  Automatically install Dependencies and fix lint errors (vuejs-templates#1133)
  Set `allChunks: true` by default (close vuejs-templates#1110) (vuejs-templates#1149)
  airbnb eslint config compatibility with vuex (vuejs-templates#1003)
  Document babel target env configuration (vuejs-templates#1144)
  Revert "remove uneccessary target.browsers (vuejs-templates#1004)" (vuejs-templates#1083)
  fix filename of `.eslintignore` (vuejs-templates#1136)
  webpack.conf.js is not needed in jest and e2e (vuejs-templates#1135)

# Conflicts:
#	template/test/e2e/custom-assertions/elementCount.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants