@babel/preset-react
Advanced tools
+42
-44
@@ -10,9 +10,8 @@ import { declarePreset } from '@babel/helper-plugin-utils'; | ||
| function normalizeOptions(options = {}) { | ||
| { | ||
| if ("useSpread" in options) { | ||
| throw new Error('@babel/preset-react: Since Babel 8, an inline object with spread elements is always used, and the "useSpread" option is no longer available. Please remove it from your config.'); | ||
| } | ||
| if ("useBuiltIns" in options) { | ||
| const useBuiltInsFormatted = JSON.stringify(options.useBuiltIns); | ||
| throw new Error(`@babel/preset-react: Since "useBuiltIns" is removed in Babel 8, you can remove it from the config. | ||
| if ("useSpread" in options) { | ||
| throw new Error('@babel/preset-react: Since Babel 8, an inline object with spread elements is always used, and the "useSpread" option is no longer available. Please remove it from your config.'); | ||
| } | ||
| if ("useBuiltIns" in options) { | ||
| const useBuiltInsFormatted = JSON.stringify(options.useBuiltIns); | ||
| throw new Error(`@babel/preset-react: Since "useBuiltIns" is removed in Babel 8, you can remove it from the config. | ||
| - Babel 8 now transforms JSX spread to object spread. If you need to transpile object spread with | ||
@@ -26,43 +25,42 @@ \`useBuiltIns: ${useBuiltInsFormatted}\`, you can use the following config | ||
| }`); | ||
| } | ||
| const TopLevelOptions = { | ||
| development: "development", | ||
| importSource: "importSource", | ||
| pragma: "pragma", | ||
| pragmaFrag: "pragmaFrag", | ||
| pure: "pure", | ||
| runtime: "runtime", | ||
| throwIfNamespace: "throwIfNamespace" | ||
| }; | ||
| v.validateTopLevelOptions(options, TopLevelOptions); | ||
| const development = v.validateBooleanOption(TopLevelOptions.development, options.development); | ||
| let importSource = v.validateStringOption(TopLevelOptions.importSource, options.importSource); | ||
| let pragma = v.validateStringOption(TopLevelOptions.pragma, options.pragma); | ||
| let pragmaFrag = v.validateStringOption(TopLevelOptions.pragmaFrag, options.pragmaFrag); | ||
| const pure = v.validateBooleanOption(TopLevelOptions.pure, options.pure); | ||
| const runtime = v.validateStringOption(TopLevelOptions.runtime, options.runtime, "automatic"); | ||
| const throwIfNamespace = v.validateBooleanOption(TopLevelOptions.throwIfNamespace, options.throwIfNamespace, true); | ||
| const validRuntime = ["classic", "automatic"]; | ||
| if (runtime === "classic") { | ||
| pragma = pragma || "React.createElement"; | ||
| pragmaFrag = pragmaFrag || "React.Fragment"; | ||
| } else if (runtime === "automatic") { | ||
| importSource = importSource || "react"; | ||
| } else { | ||
| throw new Error(`@babel/preset-react: 'runtime' must be one of ['automatic', 'classic'] but we have '${runtime}'\n` + `- Did you mean '${findSuggestion(runtime, validRuntime)}'?`); | ||
| } | ||
| return { | ||
| development, | ||
| importSource, | ||
| pragma, | ||
| pragmaFrag, | ||
| pure, | ||
| runtime, | ||
| throwIfNamespace | ||
| }; | ||
| } | ||
| const TopLevelOptions = { | ||
| development: "development", | ||
| importSource: "importSource", | ||
| pragma: "pragma", | ||
| pragmaFrag: "pragmaFrag", | ||
| pure: "pure", | ||
| runtime: "runtime", | ||
| throwIfNamespace: "throwIfNamespace" | ||
| }; | ||
| v.validateTopLevelOptions(options, TopLevelOptions); | ||
| const development = v.validateBooleanOption(TopLevelOptions.development, options.development); | ||
| let importSource = v.validateStringOption(TopLevelOptions.importSource, options.importSource); | ||
| let pragma = v.validateStringOption(TopLevelOptions.pragma, options.pragma); | ||
| let pragmaFrag = v.validateStringOption(TopLevelOptions.pragmaFrag, options.pragmaFrag); | ||
| const pure = v.validateBooleanOption(TopLevelOptions.pure, options.pure); | ||
| const runtime = v.validateStringOption(TopLevelOptions.runtime, options.runtime, "automatic"); | ||
| const throwIfNamespace = v.validateBooleanOption(TopLevelOptions.throwIfNamespace, options.throwIfNamespace, true); | ||
| const validRuntime = ["classic", "automatic"]; | ||
| if (runtime === "classic") { | ||
| pragma = pragma || "React.createElement"; | ||
| pragmaFrag = pragmaFrag || "React.Fragment"; | ||
| } else if (runtime === "automatic") { | ||
| importSource = importSource || "react"; | ||
| } else { | ||
| throw new Error(`@babel/preset-react: 'runtime' must be one of ['automatic', 'classic'] but we have '${runtime}'\n` + `- Did you mean '${findSuggestion(runtime, validRuntime)}'?`); | ||
| } | ||
| return { | ||
| development, | ||
| importSource, | ||
| pragma, | ||
| pragmaFrag, | ||
| pure, | ||
| runtime, | ||
| throwIfNamespace | ||
| }; | ||
| } | ||
| var index = declarePreset((api, opts) => { | ||
| api.assertVersion("8.0.0-beta.3"); | ||
| api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-beta.4"); | ||
| const { | ||
@@ -69,0 +67,0 @@ development = api.env(env => env === "development"), |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sources":["../src/normalize-options.ts","../src/index.ts"],"sourcesContent":["import {\n OptionValidator,\n findSuggestion,\n} from \"@babel/helper-validator-option\";\nconst v = new OptionValidator(\"@babel/preset-react\");\n\nexport default function normalizeOptions(options: any = {}) {\n if (process.env.BABEL_8_BREAKING) {\n if (\"useSpread\" in options) {\n throw new Error(\n '@babel/preset-react: Since Babel 8, an inline object with spread elements is always used, and the \"useSpread\" option is no longer available. Please remove it from your config.',\n );\n }\n\n if (\"useBuiltIns\" in options) {\n const useBuiltInsFormatted = JSON.stringify(options.useBuiltIns);\n throw new Error(\n `@babel/preset-react: Since \"useBuiltIns\" is removed in Babel 8, you can remove it from the config.\n- Babel 8 now transforms JSX spread to object spread. If you need to transpile object spread with\n\\`useBuiltIns: ${useBuiltInsFormatted}\\`, you can use the following config\n{\n \"plugins\": [\n [\"@babel/plugin-transform-object-rest-spread\", { \"loose\": true, \"useBuiltIns\": ${useBuiltInsFormatted} }]\n ],\n \"presets\": [\"@babel/preset-react\"]\n}`,\n );\n }\n\n const TopLevelOptions = {\n development: \"development\",\n importSource: \"importSource\",\n pragma: \"pragma\",\n pragmaFrag: \"pragmaFrag\",\n pure: \"pure\",\n runtime: \"runtime\",\n throwIfNamespace: \"throwIfNamespace\",\n };\n v.validateTopLevelOptions(options, TopLevelOptions);\n const development = v.validateBooleanOption(\n TopLevelOptions.development,\n options.development,\n );\n let importSource = v.validateStringOption(\n TopLevelOptions.importSource,\n options.importSource,\n );\n let pragma = v.validateStringOption(TopLevelOptions.pragma, options.pragma);\n let pragmaFrag = v.validateStringOption(\n TopLevelOptions.pragmaFrag,\n options.pragmaFrag,\n );\n const pure = v.validateBooleanOption(TopLevelOptions.pure, options.pure);\n const runtime = v.validateStringOption(\n TopLevelOptions.runtime,\n options.runtime,\n \"automatic\",\n );\n const throwIfNamespace = v.validateBooleanOption(\n TopLevelOptions.throwIfNamespace,\n options.throwIfNamespace,\n true,\n );\n\n const validRuntime = [\"classic\", \"automatic\"];\n\n if (runtime === \"classic\") {\n pragma = pragma || \"React.createElement\";\n pragmaFrag = pragmaFrag || \"React.Fragment\";\n } else if (runtime === \"automatic\") {\n importSource = importSource || \"react\";\n } else {\n throw new Error(\n `@babel/preset-react: 'runtime' must be one of ['automatic', 'classic'] but we have '${runtime}'\\n` +\n `- Did you mean '${findSuggestion(runtime, validRuntime)}'?`,\n );\n }\n\n return {\n development,\n importSource,\n pragma,\n pragmaFrag,\n pure,\n runtime,\n throwIfNamespace,\n };\n } else {\n let { pragma, pragmaFrag } = options;\n\n const {\n pure,\n throwIfNamespace = true,\n runtime = \"classic\",\n importSource,\n useBuiltIns,\n useSpread,\n } = options;\n\n if (runtime === \"classic\") {\n pragma = pragma || \"React.createElement\";\n pragmaFrag = pragmaFrag || \"React.Fragment\";\n }\n\n const development =\n options.development == null ? undefined : !!options.development;\n\n return {\n development,\n importSource,\n pragma,\n pragmaFrag,\n pure,\n runtime,\n throwIfNamespace,\n useBuiltIns,\n useSpread,\n };\n }\n}\n","import { declarePreset } from \"@babel/helper-plugin-utils\";\nimport transformReactJSX from \"@babel/plugin-transform-react-jsx\";\nimport transformReactJSXDevelopment from \"@babel/plugin-transform-react-jsx-development\";\nimport transformReactDisplayName from \"@babel/plugin-transform-react-display-name\";\nimport transformReactPure from \"@babel/plugin-transform-react-pure-annotations\";\nimport normalizeOptions from \"./normalize-options.ts\";\nimport type { PluginItem } from \"@babel/core\";\n\nexport interface Options {\n development?: boolean;\n importSource?: string;\n pragma?: string;\n pragmaFrag?: string;\n pure?: string;\n runtime?: \"automatic\" | \"classic\";\n throwIfNamespace?: boolean;\n useBuiltIns?: boolean;\n useSpread?: boolean;\n}\n\nexport default declarePreset((api, opts: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const {\n development = process.env.BABEL_8_BREAKING\n ? api.env(env => env === \"development\")\n : false,\n importSource,\n pragma,\n pragmaFrag,\n pure,\n runtime,\n throwIfNamespace,\n } = normalizeOptions(opts);\n\n return {\n plugins: [\n [\n development ? transformReactJSXDevelopment : transformReactJSX,\n process.env.BABEL_8_BREAKING\n ? {\n importSource,\n pragma,\n pragmaFrag,\n runtime,\n throwIfNamespace,\n pure,\n }\n : {\n importSource,\n pragma,\n pragmaFrag,\n runtime,\n throwIfNamespace,\n pure,\n useBuiltIns: !!opts.useBuiltIns,\n useSpread: opts.useSpread,\n },\n ] satisfies PluginItem,\n transformReactDisplayName,\n pure !== false && transformReactPure,\n ].filter(Boolean),\n };\n});\n"],"names":["v","OptionValidator","normalizeOptions","options","Error","useBuiltInsFormatted","JSON","stringify","useBuiltIns","TopLevelOptions","development","importSource","pragma","pragmaFrag","pure","runtime","throwIfNamespace","validateTopLevelOptions","validateBooleanOption","validateStringOption","validRuntime","findSuggestion","declarePreset","api","opts","assertVersion","env","plugins","transformReactJSXDevelopment","transformReactJSX","transformReactDisplayName","transformReactPure","filter","Boolean"],"mappings":";;;;;;;AAIA,MAAMA,CAAC,GAAG,IAAIC,eAAe,CAAC,qBAAqB,CAAC,CAAA;AAErC,SAASC,gBAAgBA,CAACC,OAAY,GAAG,EAAE,EAAE;AACxB,EAAA;IAChC,IAAI,WAAW,IAAIA,OAAO,EAAE;AAC1B,MAAA,MAAM,IAAIC,KAAK,CACb,iLACF,CAAC,CAAA;AACH,KAAA;IAEA,IAAI,aAAa,IAAID,OAAO,EAAE;MAC5B,MAAME,oBAAoB,GAAGC,IAAI,CAACC,SAAS,CAACJ,OAAO,CAACK,WAAW,CAAC,CAAA;MACh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C,gBAAgB;AAChBF,MAAAA,IAAAA;AACF,KAAC,CAWN,EACDgB,yBAAyB,EACzBhB,IAAI,KAAK,KAAK,IAAIiB,kBAAkB,CACrC,CAACC,MAAM,CAACC,OAAO,CAAA;GACjB,CAAA;AACH,CAAC,CAAC;;;;"} | ||
| {"version":3,"file":"index.js","sources":["../src/normalize-options.ts","../src/index.ts"],"sourcesContent":["import {\n OptionValidator,\n findSuggestion,\n} from \"@babel/helper-validator-option\";\nconst v = new OptionValidator(\"@babel/preset-react\");\n\nexport default function normalizeOptions(options: any = {}) {\n if (\"useSpread\" in options) {\n throw new Error(\n '@babel/preset-react: Since Babel 8, an inline object with spread elements is always used, and the \"useSpread\" option is no longer available. Please remove it from your config.',\n );\n }\n\n if (\"useBuiltIns\" in options) {\n const useBuiltInsFormatted = JSON.stringify(options.useBuiltIns);\n throw new Error(\n `@babel/preset-react: Since \"useBuiltIns\" is removed in Babel 8, you can remove it from the config.\n- Babel 8 now transforms JSX spread to object spread. If you need to transpile object spread with\n\\`useBuiltIns: ${useBuiltInsFormatted}\\`, you can use the following config\n{\n \"plugins\": [\n [\"@babel/plugin-transform-object-rest-spread\", { \"loose\": true, \"useBuiltIns\": ${useBuiltInsFormatted} }]\n ],\n \"presets\": [\"@babel/preset-react\"]\n}`,\n );\n }\n\n const TopLevelOptions = {\n development: \"development\",\n importSource: \"importSource\",\n pragma: \"pragma\",\n pragmaFrag: \"pragmaFrag\",\n pure: \"pure\",\n runtime: \"runtime\",\n throwIfNamespace: \"throwIfNamespace\",\n };\n v.validateTopLevelOptions(options, TopLevelOptions);\n const development = v.validateBooleanOption(\n TopLevelOptions.development,\n options.development,\n );\n let importSource = v.validateStringOption(\n TopLevelOptions.importSource,\n options.importSource,\n );\n let pragma = v.validateStringOption(TopLevelOptions.pragma, options.pragma);\n let pragmaFrag = v.validateStringOption(\n TopLevelOptions.pragmaFrag,\n options.pragmaFrag,\n );\n const pure = v.validateBooleanOption(TopLevelOptions.pure, options.pure);\n const runtime = v.validateStringOption(\n TopLevelOptions.runtime,\n options.runtime,\n \"automatic\",\n );\n const throwIfNamespace = v.validateBooleanOption(\n TopLevelOptions.throwIfNamespace,\n options.throwIfNamespace,\n true,\n );\n\n const validRuntime = [\"classic\", \"automatic\"];\n\n if (runtime === \"classic\") {\n pragma = pragma || \"React.createElement\";\n pragmaFrag = pragmaFrag || \"React.Fragment\";\n } else if (runtime === \"automatic\") {\n importSource = importSource || \"react\";\n } else {\n throw new Error(\n `@babel/preset-react: 'runtime' must be one of ['automatic', 'classic'] but we have '${runtime}'\\n` +\n `- Did you mean '${findSuggestion(runtime, validRuntime)}'?`,\n );\n }\n\n return {\n development,\n importSource,\n pragma,\n pragmaFrag,\n pure,\n runtime,\n throwIfNamespace,\n };\n}\n","import { declarePreset } from \"@babel/helper-plugin-utils\";\nimport transformReactJSX from \"@babel/plugin-transform-react-jsx\";\nimport transformReactJSXDevelopment from \"@babel/plugin-transform-react-jsx-development\";\nimport transformReactDisplayName from \"@babel/plugin-transform-react-display-name\";\nimport transformReactPure from \"@babel/plugin-transform-react-pure-annotations\";\nimport normalizeOptions from \"./normalize-options.ts\";\nimport type { PluginItem } from \"@babel/core\";\n\nexport interface Options {\n development?: boolean;\n importSource?: string;\n pragma?: string;\n pragmaFrag?: string;\n pure?: string;\n runtime?: \"automatic\" | \"classic\";\n throwIfNamespace?: boolean;\n useBuiltIns?: boolean;\n useSpread?: boolean;\n}\n\nexport default declarePreset((api, opts: Options) => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n const {\n development = api.env(env => env === \"development\"),\n importSource,\n pragma,\n pragmaFrag,\n pure,\n runtime,\n throwIfNamespace,\n } = normalizeOptions(opts);\n\n return {\n plugins: [\n [\n development ? transformReactJSXDevelopment : transformReactJSX,\n\n {\n importSource,\n pragma,\n pragmaFrag,\n runtime,\n throwIfNamespace,\n pure,\n },\n ] satisfies PluginItem,\n transformReactDisplayName,\n pure !== false && transformReactPure,\n ].filter(Boolean),\n };\n});\n"],"names":["v","OptionValidator","normalizeOptions","options","Error","useBuiltInsFormatted","JSON","stringify","useBuiltIns","TopLevelOptions","development","importSource","pragma","pragmaFrag","pure","runtime","throwIfNamespace","validateTopLevelOptions","validateBooleanOption","validateStringOption","validRuntime","findSuggestion","declarePreset","api","opts","assertVersion","env","plugins","transformReactJSXDevelopment","transformReactJSX","transformReactDisplayName","transformReactPure","filter","Boolean"],"mappings":";;;;;;;AAIA,MAAMA,CAAC,GAAG,IAAIC,eAAe,CAAC,qBAAqB,CAAC,CAAA;AAErC,SAASC,gBAAgBA,CAACC,OAAY,GAAG,EAAE,EAAE;EAC1D,IAAI,WAAW,IAAIA,OAAO,EAAE;AAC1B,IAAA,MAAM,IAAIC,KAAK,CACb,iLACF,CAAC,CAAA;AACH,GAAA;EAEA,IAAI,aAAa,IAAID,OAAO,EAAE;IAC5B,MAAME,oBAAoB,GAAGC,IAAI,CAACC,SAAS,CAACJ,OAAO,CAACK,WAAW,CAAC,CAAA;IAChE,MAAM,IAAIJ,KAAK,CACb,CAAA;AACN;AACA,eAAA,EAAiBC,oBAAoB,CAAA;AACrC;AACA;AACA,mFAAA,EAAqFA,oBAAoB,CAAA;AACzG;AACA;AACA,CAAA,CACI,CAAC,CAAA;AACH,GAAA;AAEA,EAAA,MAAMI,eAAe,GAAG;AACtBC,IAAAA,WAAW,EAAE,aAAa;AAC1BC,IAAAA,YAAY,EAAE,cAAc;AAC5BC,IAAAA,MAAM,EAAE,QAAQ;AAChBC,IAAAA,UAAU,EAAE,YAAY;AACxBC,IAAAA,IAAI,EAAE,MAAM;AACZC,IAAAA,OAAO,EAAE,SAAS;AAClBC,IAAAA,gBAAgB,EAAE,kBAAA;GACnB,CAAA;AACDhB,EAAAA,CAAC,CAACiB,uBAAuB,CAACd,OAAO,EAAEM,eAAe,CAAC,CAAA;AACnD,EAAA,MAAMC,WAAW,GAAGV,CAAC,CAACkB,qBAAqB,CACzCT,eAAe,CAACC,WAAW,EAC3BP,OAAO,CAACO,WACV,CAAC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AAO;IACLV,WAAW;IACXC,YAAY;IACZC,MAAM;IACNC,UAAU;IACVC,IAAI;IACJC,OAAO;AACPC,IAAAA,gBAAAA;GACD,CAAA;AACH;;AClEA,YAAeM,aAAa,CAAC,CAACC,GAAG,EAAEC,IAAa,KAAK;EACnDD,GAAG,CAACE,aAAa,CAAA,oCAAoB,CAAC,CAAA;EAEtC,MAAM;IACJf,WAAW,GAAGa,GAAG,CAACG,GAAG,CAACA,GAAG,IAAIA,GAAG,KAAK,aAAa,CAAC;IACnDf,YAAY;IACZC,MAAM;IACNC,UAAU;IACVC,IAAI;IACJC,OAAO;AACPC,IAAAA,gBAAAA;AACF,GAAC,GAAGd,gBAAgB,CAACsB,IAAI,CAAC,CAAA;EAE1B,OAAO;IACLG,OAAO,EAAE,CACP,CACEjB,WAAW,GAAGkB,4BAA4B,GAAGC,iBAAiB,EAE9D;MACElB,YAAY;MACZC,MAAM;MACNC,UAAU;MACVE,OAAO;MACPC,gBAAgB;AAChBF,MAAAA,IAAAA;AACF,KAAC,CACF,EACDgB,yBAAyB,EACzBhB,IAAI,KAAK,KAAK,IAAIiB,kBAAkB,CACrC,CAACC,MAAM,CAACC,OAAO,CAAA;GACjB,CAAA;AACH,CAAC,CAAC;;;;"} |
+10
-10
| { | ||
| "name": "@babel/preset-react", | ||
| "version": "8.0.0-beta.3", | ||
| "version": "8.0.0-beta.4", | ||
| "description": "Babel preset for all React plugins.", | ||
@@ -19,15 +19,15 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
| "dependencies": { | ||
| "@babel/helper-plugin-utils": "^8.0.0-beta.3", | ||
| "@babel/helper-validator-option": "^8.0.0-beta.3", | ||
| "@babel/plugin-transform-react-display-name": "^8.0.0-beta.3", | ||
| "@babel/plugin-transform-react-jsx": "^8.0.0-beta.3", | ||
| "@babel/plugin-transform-react-jsx-development": "^8.0.0-beta.3", | ||
| "@babel/plugin-transform-react-pure-annotations": "^8.0.0-beta.3" | ||
| "@babel/helper-plugin-utils": "^8.0.0-beta.4", | ||
| "@babel/helper-validator-option": "^8.0.0-beta.4", | ||
| "@babel/plugin-transform-react-display-name": "^8.0.0-beta.4", | ||
| "@babel/plugin-transform-react-jsx": "^8.0.0-beta.4", | ||
| "@babel/plugin-transform-react-jsx-development": "^8.0.0-beta.4", | ||
| "@babel/plugin-transform-react-pure-annotations": "^8.0.0-beta.4" | ||
| }, | ||
| "peerDependencies": { | ||
| "@babel/core": "^8.0.0-beta.3" | ||
| "@babel/core": "^7.0.0-0" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/core": "^8.0.0-beta.3", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-beta.3" | ||
| "@babel/core": "^8.0.0-beta.4", | ||
| "@babel/helper-plugin-test-runner": "^8.0.0-beta.4" | ||
| }, | ||
@@ -34,0 +34,0 @@ "engines": { |
14526
-8.4%97
-2.02%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
Updated
Updated
Updated