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

Rename browsers option to overrideBrowserslist for postcss #273

Merged
merged 7 commits into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion __tests__/lib/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
// @flow

// Polyfills to support IE, etc.
// Note: I attempted to update to core-js@3, but ran into issues about ES6
// imports. core-js@2 does not have core-js/stable, which is why we're importing
// the root.
// $FlowFixMe - import required for babel polyfill, see https://babeljs.io/docs/en/babel-polyfill
import 'core-js'
// $FlowFixMe - import required for babel polyfill, see https://babeljs.io/docs/en/babel-polyfill
import 'regenerator-runtime/runtime'
// Imports for test
const build = require('../../lib/build')
const loadConfig = require('../../lib/load-config')
const util = require('../test-utils/util.js')
Expand Down
2 changes: 1 addition & 1 deletion __tests__/test-utils/mocks/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {Component} from 'react'
import React, { Component } from 'react'
import uuid from 'uuid'

import png from '../../../mastarm.png'
Expand Down
2 changes: 1 addition & 1 deletion lib/babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function (env, instrument) {
{
loose: false, // Loose mode breaks spread operator on `Set`s
targets: { browsers },
useBuiltIns: 'usage'
useBuiltIns: 'entry'
}
],
flow,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"commander": "^2.19.0",
"commitizen": "^3.0.7",
"concat-stream": "^2.0.0",
"core-js": "2",
"cssnano": "^4.1.10",
"cz-conventional-changelog": "^2.1.0",
"envify": "^4.1.0",
Expand Down Expand Up @@ -105,6 +106,7 @@
"prettier-eslint-cli": "^4.7.1",
"rimraf": "^2.6.3",
"slack-node": "^0.1.8",
"sshpk": "^1.16.1",
"this-commit": "^1.0.0",
"through2": "^3.0.1",
"uglifyify": "^5.0.1",
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2518,6 +2518,11 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=

core-js@2:
version "2.6.9"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2"
integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==

core-js@^2.4.0, core-js@^2.5.7:
version "2.6.5"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.5.tgz#44bc8d249e7fb2ff5d00e0341a7ffb94fbf67895"
Expand Down Expand Up @@ -9642,7 +9647,7 @@ sprintf-js@~1.0.2:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=

sshpk@^1.7.0:
sshpk@^1.16.1, sshpk@^1.7.0:
version "1.16.1"
resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877"
integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==
Expand Down