Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0519fa907 | ||
|
|
019fbca3f6 | ||
|
|
24dde2e8e8 | ||
|
|
bff79e198a | ||
|
|
106bb41d47 |
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"changelog": {
|
||||
"repo": "babel/babel",
|
||||
"cacheDir": ".changelog",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "babel-core",
|
||||
"name": "babel",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@@ -50,7 +50,7 @@
|
||||
"gulp-watch": "^5.0.1",
|
||||
"husky": "^2.3.0",
|
||||
"jest": "^24.8.0",
|
||||
"lerna": "^3.14.0",
|
||||
"lerna": "^3.14.2",
|
||||
"lerna-changelog": "^0.5.0",
|
||||
"lint-staged": "^8.1.7",
|
||||
"lodash": "^4.17.11",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/helpers",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "Collection of helper functions used by Babel transforms.",
|
||||
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
||||
"homepage": "https://babeljs.io/",
|
||||
|
||||
@@ -406,7 +406,7 @@ helpers.objectSpread = helper("7.0.0-beta.0")`
|
||||
}
|
||||
`;
|
||||
|
||||
helpers.objectSpread2 = helper("7.0.0-beta.0")`
|
||||
helpers.objectSpread2 = helper("7.5.0")`
|
||||
import defineProperty from "defineProperty";
|
||||
|
||||
export default function _objectSpread2(target) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/plugin-proposal-object-rest-spread",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "Compile object rest and spread to ES5",
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -452,7 +452,13 @@ export default declare((api, opts) => {
|
||||
if (loose) {
|
||||
helper = getExtendsHelper(file);
|
||||
} else {
|
||||
helper = file.addHelper("objectSpread2");
|
||||
try {
|
||||
helper = file.addHelper("objectSpread2");
|
||||
} catch {
|
||||
// objectSpread2 has been introduced in v7.5.0
|
||||
// We have to maintain backward compatibility.
|
||||
helper = file.addHelper("objectSpread");
|
||||
}
|
||||
}
|
||||
|
||||
path.replaceWith(t.callExpression(helper, args));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/plugin-transform-typescript",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "Transform TypeScript into ES.next",
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typescript",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -98,6 +98,7 @@ export default declare(
|
||||
ExportNamedDeclaration(path) {
|
||||
// remove export declaration if it's exporting only types
|
||||
if (
|
||||
!path.node.source &&
|
||||
path.node.specifiers.length > 0 &&
|
||||
!path.node.specifiers.find(exportSpecifier =>
|
||||
path.scope.hasOwnBinding(exportSpecifier.local.name),
|
||||
@@ -109,7 +110,10 @@ export default declare(
|
||||
|
||||
ExportSpecifier(path) {
|
||||
// remove type exports
|
||||
if (!path.scope.hasOwnBinding(path.node.local.name)) {
|
||||
if (
|
||||
!path.parent.source &&
|
||||
!path.scope.hasOwnBinding(path.node.local.name)
|
||||
) {
|
||||
path.remove();
|
||||
}
|
||||
},
|
||||
|
||||
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/input.mjs
vendored
Normal file
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/input.mjs
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default "foo";
|
||||
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/output.mjs
vendored
Normal file
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/output.mjs
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default "foo";
|
||||
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/input.mjs
vendored
Normal file
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/input.mjs
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { bar } from './bar';
|
||||
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/output.mjs
vendored
Normal file
1
packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/output.mjs
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { bar } from './bar';
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/preset-env-standalone",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "Standalone build of babel-prest-env for use in non-Node.js environments.",
|
||||
"main": "babel-preset-env.js",
|
||||
"files": [
|
||||
@@ -14,7 +14,7 @@
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.4.5",
|
||||
"@babel/plugin-transform-new-target": "^7.4.4",
|
||||
"@babel/preset-env": "^7.5.0",
|
||||
"@babel/standalone": "^7.5.0"
|
||||
"@babel/standalone": "^7.5.1"
|
||||
},
|
||||
"keywords": [
|
||||
"babel",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/runtime-corejs2",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "babel's modular runtime helpers with core-js@2 polyfilling",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
@@ -13,6 +13,6 @@
|
||||
"regenerator-runtime": "^0.13.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helpers": "^7.5.0"
|
||||
"@babel/helpers": "^7.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/runtime-corejs3",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "babel's modular runtime helpers with core-js@3 polyfilling",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/runtime",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "babel's modular runtime helpers",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
@@ -12,6 +12,6 @@
|
||||
"regenerator-runtime": "^0.13.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/helpers": "^7.5.0"
|
||||
"@babel/helpers": "^7.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@babel/standalone",
|
||||
"version": "7.5.0",
|
||||
"version": "7.5.1",
|
||||
"description": "Standalone build of Babel for use in non-Node.js environments.",
|
||||
"main": "babel.js",
|
||||
"files": [
|
||||
@@ -24,7 +24,7 @@
|
||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.2.0",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
|
||||
"@babel/plugin-proposal-numeric-separator": "^7.2.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.5.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.5.1",
|
||||
"@babel/plugin-proposal-optional-catch-binding": "^7.2.0",
|
||||
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
|
||||
"@babel/plugin-proposal-pipeline-operator": "^7.5.0",
|
||||
@@ -93,7 +93,7 @@
|
||||
"@babel/plugin-transform-strict-mode": "^7.2.0",
|
||||
"@babel/plugin-transform-template-literals": "^7.4.4",
|
||||
"@babel/plugin-transform-typeof-symbol": "^7.2.0",
|
||||
"@babel/plugin-transform-typescript": "^7.5.0",
|
||||
"@babel/plugin-transform-typescript": "^7.5.1",
|
||||
"@babel/plugin-transform-unicode-regex": "^7.4.4",
|
||||
"@babel/preset-flow": "^7.0.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
|
||||
Reference in New Issue
Block a user