babel: 7.10 breaks PhantomJS

Bug Report

Current behavior The (automatic) update of babel for 7.9 to 7.10 breaks PhantomJS.

Possible Solution Adding this to package.json fixed it until the next updates form other babel submodules broke it again.

  "resolutions": {
    "ember-cli-babel": "7.19.0",
    "@babel/core": "7.9.6",
    "@babel/generator": "7.9.6",
    "@babel/helpers": "7.9.6",
    "@babel/parser": "7.9.6",
    "@babel/template": "7.8.6",
    "@babel/traverse": "7.9.6",
    "@babel/types": "7.9.6",
    "@babel/compat-data": "7.9.6",
    "@babel/helper-compilation-targets": "7.9.6",
    "@babel/helper-create-class-features-plugin": "7.9.6", 
    "@babel/helper-member-expression-to-functions": "7.8.3",
    "@babel/helper-optimise-call-expression": "7.8.3",
    "@babel/helper-replace-supers": "7.9.6", 
    "@babel/plugin-proposal-decorators": "7.8.3",
    "@babel/plugin-proposal-json-strings": "7.8.3",
    "@babel/plugin-proposal-object-rest-spread": "7.9.6", 
    "@babel/plugin-proposal-optional-chaining": "7.9.0",
    "@babel/plugin-transform-block-scoping": "7.8.3",
    "@babel/plugin-transform-destructuring": "7.9.5", 
    "@babel/plugin-transform-for-of": "7.9.0",
    "@babel/plugin-transform-modules-systemjs": "7.9.6",
    "@babel/plugin-transform-runtime": "7.9.6", 
    "@babel/plugin-transform-spread": "7.8.3",
    "@babel/plugin-transform-typescript": "7.9.6",
    "@babel/preset-env": "7.9.6", 
    "@babel/runtime": "7.9.6"
  }

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Noticed you have a resolutions entry for babel-plugin-ember-modules-api-polyfill@2.13.0… bumping ember-cli-babel to 7.20.3 isn’t enough as it depends on an updated version of babel-plugin-ember-modules-api-polyfill -> https://github.com/ember-cli/babel-plugin-ember-modules-api-polyfill/releases

@bmaehr you’ll want to update ember-cli-babel, check out the recent bug fix releases: https://github.com/babel/ember-cli-babel/releases