Scoped: updated numerous docs with scoped packages change [skip ci]
This commit is contained in:
committed by
Henry Zhu
parent
919bdf5e79
commit
859ea4b175
@@ -106,7 +106,7 @@ const readConfigJS = makeStrongCache((filepath, cache) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
// The `require()` call below can make this code reentrant if a require hook like babel-register has been
|
||||
// The `require()` call below can make this code reentrant if a require hook like @babel/register has been
|
||||
// loaded into the system. That would cause Babel to attempt to compile the `.babelrc.js` file as it loads
|
||||
// below. To cover this case, we auto-ignore re-entrant config processing.
|
||||
if (LOADING_CONFIGS.has(filepath)) {
|
||||
|
||||
@@ -25,9 +25,6 @@ export default {
|
||||
message:
|
||||
"use the `pragma` option in the `react-jsx` plugin . Check out http://babeljs.io/docs/plugins/transform-react-jsx/",
|
||||
},
|
||||
// "keepModuleIdExtensions": {
|
||||
// "message": ""
|
||||
// },
|
||||
loose: {
|
||||
message:
|
||||
"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option.",
|
||||
|
||||
@@ -39,8 +39,8 @@ export { default as transformFile } from "./transform-file";
|
||||
export { default as transformFileSync } from "./transform-file-sync";
|
||||
|
||||
/**
|
||||
* Recommended set of compilable extensions. Not used in babel-core directly, but meant as
|
||||
* as an easy source for tooling making use of babel-core.
|
||||
* Recommended set of compilable extensions. Not used in @babel/core directly, but meant as
|
||||
* as an easy source for tooling making use of @babel/core.
|
||||
*/
|
||||
export const DEFAULT_EXTENSIONS = Object.freeze([
|
||||
".js",
|
||||
|
||||
@@ -9,7 +9,7 @@ let LOADED_PLUGIN: Plugin | void;
|
||||
export default function loadBlockHoistPlugin(): Plugin {
|
||||
if (!LOADED_PLUGIN) {
|
||||
// Lazy-init the internal plugin to remove the init-time circular
|
||||
// dependency between plugins being passed babel-core's export object,
|
||||
// dependency between plugins being passed @babel/core's export object,
|
||||
// which loads this file, and this 'loadConfig' loading plugins.
|
||||
const config = loadConfig({
|
||||
babelrc: false,
|
||||
|
||||
Reference in New Issue
Block a user