diff --git a/packages/babel-preset-stage-0/.npmignore b/packages/babel-preset-stage-0/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-preset-stage-0/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-preset-stage-0/README.md b/packages/babel-preset-stage-0/README.md deleted file mode 100644 index 6826104889..0000000000 --- a/packages/babel-preset-stage-0/README.md +++ /dev/null @@ -1,65 +0,0 @@ -# @babel/preset-stage-0 - -As of v7.0.0-beta.55, we've removed Babel's Stage presets. Please consider reading our [blog post](https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets) on this decision for more details. TL;DR is that it's more beneficial in the long run to explicitly add which proposals to use. - ---- - -For a more automatic migration, we have updated [babel-upgrade](https://github.com/babel/babel-upgrade) to do this for you (you can run `npx babel-upgrade`). - -If you want the same configuration as before: - -```jsonc -{ - "plugins": [ - // Stage 0 - "@babel/plugin-proposal-function-bind", - - // Stage 1 - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-logical-assignment-operators", - ["@babel/plugin-proposal-optional-chaining", { "loose": false }], - ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }], - ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }], - "@babel/plugin-proposal-do-expressions", - - // Stage 2 - ["@babel/plugin-proposal-decorators", { "legacy": true }], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - - // Stage 3 - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": true }], - "@babel/plugin-proposal-json-strings" - ] -} -``` - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -```js -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": true }], - ], - presets: [ - // ... - ], - }; -}; -``` - -**NOTE: Compatibility between `@babel/plugin-proposal-class-properties` and `@babel/plugin-proposal-decorators`** -If you are including your plugins manually and using `@babel/plugin-proposal-class-properties`, make sure that `@babel/plugin-proposal-decorators` comes before `@babel/plugin-proposal-class-properties`. - -When using the `legacy: true` option of `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode. - -If you are not using `@babel/plugin-proposal-decorators`, `loose` mode is not needed. \ No newline at end of file diff --git a/packages/babel-preset-stage-0/package.json b/packages/babel-preset-stage-0/package.json deleted file mode 100644 index 89f3a492dd..0000000000 --- a/packages/babel-preset-stage-0/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@babel/preset-stage-0", - "version": "7.8.3", - "description": "Babel preset for stage 0 plugins", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-0", - "main": "lib/index.js" -} diff --git a/packages/babel-preset-stage-0/src/index.js b/packages/babel-preset-stage-0/src/index.js deleted file mode 100644 index da2a61a9f4..0000000000 --- a/packages/babel-preset-stage-0/src/index.js +++ /dev/null @@ -1,60 +0,0 @@ -export default function() { - throw new Error(` -As of v7.0.0-beta.55, we've removed Babel's Stage presets. -Please consider reading our blog post on this decision at -https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets -for more details. TL;DR is that it's more beneficial in the - long run to explicitly add which proposals to use. - -For a more automatic migration, we have updated babel-upgrade, -https://github.com/babel/babel-upgrade to do this for you with -"npx babel-upgrade". - -If you want the same configuration as before: - -{ - "plugins": [ - // Stage 0 - "@babel/plugin-proposal-function-bind", - - // Stage 1 - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-logical-assignment-operators", - ["@babel/plugin-proposal-optional-chaining", { "loose": false }], - ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }], - ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }], - "@babel/plugin-proposal-do-expressions", - - // Stage 2 - ["@babel/plugin-proposal-decorators", { "legacy": true }], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - - // Stage 3 - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": false }], - "@babel/plugin-proposal-json-strings" - ] -} - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": false }], - ], - presets: [ - // ... - ], - }; -}; - `); -} diff --git a/packages/babel-preset-stage-1/.npmignore b/packages/babel-preset-stage-1/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-preset-stage-1/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-preset-stage-1/README.md b/packages/babel-preset-stage-1/README.md deleted file mode 100644 index f8757e944a..0000000000 --- a/packages/babel-preset-stage-1/README.md +++ /dev/null @@ -1,62 +0,0 @@ -# @babel/preset-stage-1 - -As of v7.0.0-beta.55, we've removed Babel's Stage presets. Please consider reading our [blog post](https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets) on this decision for more details. TL;DR is that it's more beneficial in the long run to explicitly add which proposals to use. - ---- - -For a more automatic migration, we have updated [babel-upgrade](https://github.com/babel/babel-upgrade) to do this for you (you can run `npx babel-upgrade`). - -If you want the same configuration as before: - -```jsonc -{ - "plugins": [ - // Stage 1 - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-logical-assignment-operators", - ["@babel/plugin-proposal-optional-chaining", { "loose": false }], - ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }], - ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }], - "@babel/plugin-proposal-do-expressions", - - // Stage 2 - ["@babel/plugin-proposal-decorators", { "legacy": true }], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - - // Stage 3 - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": true }], - "@babel/plugin-proposal-json-strings" - ] -} -``` - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -```js -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": false }], - ], - presets: [ - // ... - ], - }; -}; -``` - -**NOTE: Compatibility between `@babel/plugin-proposal-class-properties` and `@babel/plugin-proposal-decorators`** -If you are including your plugins manually and using `@babel/plugin-proposal-class-properties`, make sure that `@babel/plugin-proposal-decorators` comes before `@babel/plugin-proposal-class-properties`. - -When using the `legacy: true` option of `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode. - -If you are not using `@babel/plugin-proposal-decorators`, `loose` mode is not needed. \ No newline at end of file diff --git a/packages/babel-preset-stage-1/package.json b/packages/babel-preset-stage-1/package.json deleted file mode 100644 index fdfb4a3ed6..0000000000 --- a/packages/babel-preset-stage-1/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@babel/preset-stage-1", - "version": "7.8.3", - "description": "Babel preset for stage 1 plugins", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-1", - "main": "lib/index.js" -} diff --git a/packages/babel-preset-stage-1/src/index.js b/packages/babel-preset-stage-1/src/index.js deleted file mode 100644 index 7b70552855..0000000000 --- a/packages/babel-preset-stage-1/src/index.js +++ /dev/null @@ -1,57 +0,0 @@ -export default function() { - throw new Error(` -As of v7.0.0-beta.55, we've removed Babel's Stage presets. -Please consider reading our blog post on this decision at -https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets -for more details. TL;DR is that it's more beneficial in the - long run to explicitly add which proposals to use. - -For a more automatic migration, we have updated babel-upgrade, -https://github.com/babel/babel-upgrade to do this for you with -"npx babel-upgrade". - -If you want the same configuration as before: - -{ - "plugins": [ - // Stage 1 - "@babel/plugin-proposal-export-default-from", - "@babel/plugin-proposal-logical-assignment-operators", - ["@babel/plugin-proposal-optional-chaining", { "loose": false }], - ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }], - ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }], - "@babel/plugin-proposal-do-expressions", - - // Stage 2 - ["@babel/plugin-proposal-decorators", { "legacy": true }], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - - // Stage 3 - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": false }], - "@babel/plugin-proposal-json-strings" - ] -} - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": false }], - ], - presets: [ - // ... - ], - }; -}; -`); -} diff --git a/packages/babel-preset-stage-2/.npmignore b/packages/babel-preset-stage-2/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-preset-stage-2/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-preset-stage-2/README.md b/packages/babel-preset-stage-2/README.md deleted file mode 100644 index 920801e000..0000000000 --- a/packages/babel-preset-stage-2/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# @babel/preset-stage-2 - -As of v7.0.0-beta.55, we've removed Babel's Stage presets. Please consider reading our [blog post](https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets) on this decision for more details. TL;DR is that it's more beneficial in the long run to explicitly add which proposals to use. - ---- - -For a more automatic migration, we have updated [babel-upgrade](https://github.com/babel/babel-upgrade) to do this for you (you can run `npx babel-upgrade`). - -If you want the same configuration as before: - -```jsonc -{ - "plugins": [ - // Stage 2 - ["@babel/plugin-proposal-decorators", { "legacy": true }], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - - // Stage 3 - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": true }], - "@babel/plugin-proposal-json-strings" - ] -} -``` - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -```js -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": false }], - ], - presets: [ - // ... - ], - }; -}; -``` - -**NOTE: Compatibility between `@babel/plugin-proposal-class-properties` and `@babel/plugin-proposal-decorators`** -If you are including your plugins manually and using `@babel/plugin-proposal-class-properties`, make sure that `@babel/plugin-proposal-decorators` comes before `@babel/plugin-proposal-class-properties`. - -When using the `legacy: true` option of `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode. - -If you are not using `@babel/plugin-proposal-decorators`, `loose` mode is not needed. \ No newline at end of file diff --git a/packages/babel-preset-stage-2/package.json b/packages/babel-preset-stage-2/package.json deleted file mode 100644 index 25a0d45461..0000000000 --- a/packages/babel-preset-stage-2/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@babel/preset-stage-2", - "version": "7.8.3", - "description": "Babel preset for stage 2 plugins", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-2", - "main": "lib/index.js" -} diff --git a/packages/babel-preset-stage-2/src/index.js b/packages/babel-preset-stage-2/src/index.js deleted file mode 100644 index 4d3a38d425..0000000000 --- a/packages/babel-preset-stage-2/src/index.js +++ /dev/null @@ -1,49 +0,0 @@ -export default function() { - throw new Error(` -As of v7.0.0-beta.55, we've removed Babel's Stage presets. -Please consider reading our blog post on this decision at -https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets -for more details. TL;DR is that it's more beneficial in the - long run to explicitly add which proposals to use. - -For a more automatic migration, we have updated babel-upgrade, -https://github.com/babel/babel-upgrade to do this for you with -"npx babel-upgrade". - -If you want the same configuration as before: - -{ - "plugins": [ - // Stage 2 - ["@babel/plugin-proposal-decorators", { "legacy": true }], - "@babel/plugin-proposal-function-sent", - "@babel/plugin-proposal-export-namespace-from", - "@babel/plugin-proposal-numeric-separator", - "@babel/plugin-proposal-throw-expressions", - - // Stage 3 - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": false }], - "@babel/plugin-proposal-json-strings" - ] -} - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": false }], - ], - presets: [ - // ... - ], - }; -}; -`); -} diff --git a/packages/babel-preset-stage-3/.npmignore b/packages/babel-preset-stage-3/.npmignore deleted file mode 100644 index f980694583..0000000000 --- a/packages/babel-preset-stage-3/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -src -test -*.log diff --git a/packages/babel-preset-stage-3/README.md b/packages/babel-preset-stage-3/README.md deleted file mode 100644 index 33ec721e30..0000000000 --- a/packages/babel-preset-stage-3/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# @babel/preset-stage-3 - -As of v7.0.0-beta.55, we've removed Babel's Stage presets. Please consider reading our [blog post](https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets) on this decision for more details. TL;DR is that it's more beneficial in the long run to explicitly add which proposals to use. - ---- - -For a more automatic migration, we have updated [babel-upgrade](https://github.com/babel/babel-upgrade) to do this for you (you can run `npx babel-upgrade`). - -If you want the same configuration as before: - -```json -{ - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": false }], - "@babel/plugin-proposal-json-strings" - ] -} -``` - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -```js -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": true }], - ], - presets: [ - // ... - ], - }; -}; -``` - -**NOTE: Compatibility between `@babel/plugin-proposal-class-properties` and `@babel/plugin-proposal-decorators`** -If you are including your plugins manually and using `@babel/plugin-proposal-class-properties`, make sure that `@babel/plugin-proposal-decorators` comes before `@babel/plugin-proposal-class-properties`. - -When using the `legacy: true` option of `@babel/plugin-proposal-decorators`, `@babel/plugin-proposal-class-properties` must be used in `loose: true` mode. - -If you are not using `@babel/plugin-proposal-decorators`, `loose` mode is not needed. \ No newline at end of file diff --git a/packages/babel-preset-stage-3/package.json b/packages/babel-preset-stage-3/package.json deleted file mode 100644 index ca966abd9b..0000000000 --- a/packages/babel-preset-stage-3/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@babel/preset-stage-3", - "version": "7.8.3", - "description": "Babel preset for stage 3 plugins", - "author": "Sebastian McKenzie ", - "homepage": "https://babeljs.io/", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-3", - "main": "lib/index.js" -} diff --git a/packages/babel-preset-stage-3/src/index.js b/packages/babel-preset-stage-3/src/index.js deleted file mode 100644 index 5e7c9b8410..0000000000 --- a/packages/babel-preset-stage-3/src/index.js +++ /dev/null @@ -1,42 +0,0 @@ -export default function() { - throw new Error(` -As of v7.0.0-beta.55, we've removed Babel's Stage presets. -Please consider reading our blog post on this decision at -https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets -for more details. TL;DR is that it's more beneficial in the - long run to explicitly add which proposals to use. - -For a more automatic migration, we have updated babel-upgrade, -https://github.com/babel/babel-upgrade to do this for you with -"npx babel-upgrade". - -If you want the same configuration as before: - -{ - "plugins": [ - "@babel/plugin-syntax-dynamic-import", - "@babel/plugin-syntax-import-meta", - ["@babel/plugin-proposal-class-properties", { "loose": false }], - "@babel/plugin-proposal-json-strings" - ] -} - - -If you're using the same configuration across many separate projects, -keep in mind that you can also create your own custom presets with -whichever plugins and presets you're looking to use. - -module.exports = function() { - return { - plugins: [ - require("@babel/plugin-syntax-dynamic-import"), - [require("@babel/plugin-proposal-decorators"), { "legacy": true }], - [require("@babel/plugin-proposal-class-properties"), { "loose": false }], - ], - presets: [ - // ... - ], - }; -}; -`); -}