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

feat: upgraded corejs to v3 #525

Merged
merged 1 commit into from
Jan 12, 2020
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
11 changes: 7 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
]
},
"useBuiltIns": "usage",
"corejs": 3,
"exclude": [
"es.array.iterator",
"es.array.map",
"es.array.slice",
"es.object.assign",
"es.object.keys",
"transform-typeof-symbol",
"es6.object.assign",
"es6.object.keys",
"es6.array.iterator",
"web.dom.iterable"
"web.dom-collections.iterator"
],
"loose": true
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
"@babel/register": "^7.0.0",
"@emotion/is-prop-valid": "^0.7.3",
"core-js": "^2.0.0",
"core-js": "^3.6.3",
"cosmiconfig": "^5.1.0",
"dedent": "^0.7.0",
"enhanced-resolve": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/babel.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ exports[`throws when contains dynamic expression without evaluate: true in css t
2 |
3 | const title = css\`
> 4 | font-size: \${size}px;
| ^
| ^^^^
5 | \`;"
`;

Expand Down
10 changes: 5 additions & 5 deletions src/__tests__/__snapshots__/preval.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ CSS:
;
}

Dependencies: core-js/modules/es6.string.raw
Dependencies: core-js/modules/es.string.raw

`;

Expand Down Expand Up @@ -600,7 +600,7 @@ exports[`throws codeframe error when evaluation fails 1`] = `
4 |
5 | export const Title = styled.h1\`
> 6 | font-size: \${foo()}px;
| ^
| ^^^^^
7 | \`;"
`;

Expand All @@ -623,7 +623,7 @@ exports[`throws when interpolation evaluates to NaN 1`] = `
4 |
5 | export const Title = styled.h1\`
> 6 | height: \${height}px;
| ^
| ^^^^^^
7 | \`;"
`;

Expand All @@ -632,7 +632,7 @@ exports[`throws when interpolation evaluates to null 1`] = `
4 |
5 | export const Title = styled.h1\`
> 6 | color: \${color};
| ^
| ^^^^^
7 | \`;"
`;

Expand All @@ -641,6 +641,6 @@ exports[`throws when interpolation evaluates to undefined 1`] = `
4 |
5 | export const Title = styled.h1\`
> 6 | font-size: \${fontSize};
| ^
| ^^^^^^^^
7 | \`;"
`;
Loading