Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !23966

Babel 7

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/hzoo/babel-7 into v4-dev Sep 16, 2017
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 5

Created by: hzoo

👋 Bootstrap team! Making a PR to change to v7 if desired! (instead of by accident via https://github.com/twbs/bootstrap/pull/22727, hopefully we can fix that kind of dependency issue soon)

  • Update packages to Babel 7
  • Use https://github.com/babel/babel-preset-env instead of preset-es2015 (just deprecated it), has the same behavior if you don't specify a target
  • feel free to edit the pr

Diff

  • New loose option for classes removes a bunch of helper checks, so they won't be in the bundle/files anymore, so a smaller output. Via https://github.com/babel/babel/pull/4850

  • rm'classCallCheck', 'inherits', 'possibleConstructorReturn'

  • add inheritsLoose

screen shot 2017-09-16 at 3 14 28 pm
  • Aliases the class prototype via https://github.com/babel/babel/pull/5560
screen shot 2017-09-16 at 3 21 30 pm
  • babel-generator defaults to " double quotes now via https://github.com/babel/babel/pull/5824
screen shot 2017-09-16 at 2 54 50 pm
  • there are some newline changes because Babel won't read tokens from the AST anymore, so it may look different but it should compile faster (faster parse/print) via https://github.com/babel/babel/pull/5833
  • Comments from dead code elim for a minifier if using exports. via https://github.com/babel/babel/pull/6209
screen shot 2017-09-16 at 2 55 21 pm
  • default for template literals is using concat instead of +, can use loose to go back to + via https://github.com/babel/babel/pull/6098
screen shot 2017-09-16 at 2 55 14 pm
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/hzoo/babel-7