Deprecated Babel preset for stage 0 plugins that provides migration guidelines to explicit plugin configurations
npx @tessl/cli install tessl/npm-babel--preset-stage-0@7.8.0@babel/preset-stage-0 is a deprecated Babel preset that was used for stage 0 JavaScript language proposals. As of Babel v7.0.0-beta.55, this preset has been intentionally disabled and now serves as a migration guide, throwing an informative error with detailed instructions for transitioning to explicit plugin configurations.
npm install @babel/preset-stage-0// ES Modules
import presetStage0 from "@babel/preset-stage-0";
// CommonJS
const presetStage0 = require("@babel/preset-stage-0");Important: This preset no longer provides functional behavior. Any attempt to use it will result in an error with migration instructions.
import presetStage0 from "@babel/preset-stage-0";
// This will throw an error
const preset = presetStage0();This preset previously included plugins for experimental JavaScript features across different proposal stages. The error message provides complete migration paths including:
babel-upgrade toolThe main and only export of this package that provides migration guidance.
/**
* Deprecated preset function that throws an error with migration instructions
* @returns {never} Always throws an Error
* @throws {Error} Detailed migration instructions and replacement plugin configurations
*/
export default function(): never;Error Message Contents:
babel-upgrade tool for automatic migrationThis preset previously included the following plugins, now available as individual packages:
@babel/plugin-proposal-function-bind@babel/plugin-proposal-export-default-from@babel/plugin-proposal-logical-assignment-operators@babel/plugin-proposal-optional-chaining@babel/plugin-proposal-pipeline-operator@babel/plugin-proposal-nullish-coalescing-operator@babel/plugin-proposal-do-expressions@babel/plugin-proposal-decorators@babel/plugin-proposal-function-sent@babel/plugin-proposal-export-namespace-from@babel/plugin-proposal-numeric-separator@babel/plugin-proposal-throw-expressions@babel/plugin-syntax-dynamic-import@babel/plugin-syntax-import-meta@babel/plugin-proposal-class-properties@babel/plugin-proposal-json-stringsThe error message includes this complete replacement configuration:
{
"plugins": [
"@babel/plugin-proposal-function-bind",
"@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",
["@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",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
["@babel/plugin-proposal-class-properties", { "loose": false }],
"@babel/plugin-proposal-json-strings"
]
}npx babel-upgrade for automatic configuration conversionThis package will always throw an Error when its default export function is called. The error contains: