@financial-times/dotcom-build-js 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,11 +28,10 @@ module.exports = {
28
28
 
29
29
  This plugin configures [Babel](https://babeljs.io/) to compile JavaScript syntax and features that aren't supported by every browser into JavaScript that is. The browsers we target are:
30
30
 
31
- * the last 2 versions of Chrome
32
- * the last 2 versions of Edge
31
+ * the latest version of Chrome
32
+ * the lastest version of Edge
33
33
  * Safari 9.1
34
- * Firefox Extended Support Release (currently v68)
35
- * Internet Explorer 11
34
+ * Firefox Extended Support Release
36
35
 
37
36
  As well as features in current JavaScript standards, we also compile these non-standard features:
38
37
 
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function getBabelConfig(options = {}) {
4
4
  const presetEnvOpts = {
5
- targets: ['last 2 Chrome versions', 'ie 11', 'Safari >= 9.1', 'ff ESR', 'last 2 Edge versions'],
5
+ targets: ['last 1 Chrome versions', 'Safari >= 13', 'ff ESR', 'last 1 Edge versions'],
6
6
  // Exclude transforms that make all code slower
7
7
  // See https://github.com/facebook/create-react-app/pull/5278
8
8
  exclude: ['transform-typeof-symbol']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/dotcom-build-js",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "",
5
5
  "main": "dist/node/index.js",
6
6
  "types": "src/index.ts",
package/src/babel.ts CHANGED
@@ -2,7 +2,7 @@ import { PluginOptions } from './types'
2
2
 
3
3
  function getBabelConfig(options: PluginOptions = {}) {
4
4
  const presetEnvOpts = {
5
- targets: ['last 2 Chrome versions', 'ie 11', 'Safari >= 9.1', 'ff ESR', 'last 2 Edge versions'],
5
+ targets: ['last 1 Chrome versions', 'Safari >= 13', 'ff ESR', 'last 1 Edge versions'],
6
6
  // Exclude transforms that make all code slower
7
7
  // See https://github.com/facebook/create-react-app/pull/5278
8
8
  exclude: ['transform-typeof-symbol']