Area restrita - Questionario
This commit is contained in:
+27
-29
@@ -18,36 +18,34 @@ var transformReactPure__default = /*#__PURE__*/_interopDefault(transformReactPur
|
||||
|
||||
new helperValidatorOption.OptionValidator("@babel/preset-react");
|
||||
function normalizeOptions(options = {}) {
|
||||
{
|
||||
let {
|
||||
pragma,
|
||||
pragmaFrag
|
||||
} = options;
|
||||
const {
|
||||
pure,
|
||||
throwIfNamespace = true,
|
||||
runtime = "classic",
|
||||
importSource,
|
||||
useBuiltIns,
|
||||
useSpread
|
||||
} = options;
|
||||
if (runtime === "classic") {
|
||||
pragma = pragma || "React.createElement";
|
||||
pragmaFrag = pragmaFrag || "React.Fragment";
|
||||
}
|
||||
const development = options.development == null ? undefined : !!options.development;
|
||||
return {
|
||||
development,
|
||||
importSource,
|
||||
pragma,
|
||||
pragmaFrag,
|
||||
pure,
|
||||
runtime,
|
||||
throwIfNamespace,
|
||||
useBuiltIns,
|
||||
useSpread
|
||||
};
|
||||
let {
|
||||
pragma,
|
||||
pragmaFrag
|
||||
} = options;
|
||||
const {
|
||||
pure,
|
||||
throwIfNamespace = true,
|
||||
runtime = "classic",
|
||||
importSource,
|
||||
useBuiltIns,
|
||||
useSpread
|
||||
} = options;
|
||||
if (runtime === "classic") {
|
||||
pragma = pragma || "React.createElement";
|
||||
pragmaFrag = pragmaFrag || "React.Fragment";
|
||||
}
|
||||
const development = options.development == null ? undefined : !!options.development;
|
||||
return {
|
||||
development,
|
||||
importSource,
|
||||
pragma,
|
||||
pragmaFrag,
|
||||
pure,
|
||||
runtime,
|
||||
throwIfNamespace,
|
||||
useBuiltIns,
|
||||
useSpread
|
||||
};
|
||||
}
|
||||
|
||||
var index = helperPluginUtils.declarePreset((api, opts) => {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user