@babel/preset-flow
Advanced tools
Comparing version 7.21.4-esm to 7.21.4-esm.1
@@ -1,11 +0,5 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _pluginTransformFlowStripTypes = require("@babel/plugin-transform-flow-strip-types"); | ||
var _normalizeOptions = require("./normalize-options"); | ||
var _default = (0, _helperPluginUtils.declarePreset)((api, opts) => { | ||
import { declarePreset } from "@babel/helper-plugin-utils"; | ||
import transformFlowStripTypes from "@babel/plugin-transform-flow-strip-types"; | ||
import normalizeOptions from "./normalize-options.js"; | ||
export default declarePreset((api, opts) => { | ||
api.assertVersion(7); | ||
@@ -16,4 +10,4 @@ const { | ||
ignoreExtensions = false | ||
} = (0, _normalizeOptions.default)(opts); | ||
const flowPlugin = [_pluginTransformFlowStripTypes.default, { | ||
} = normalizeOptions(opts); | ||
const flowPlugin = [transformFlowStripTypes, { | ||
all, | ||
@@ -29,4 +23,3 @@ allowDeclareFields | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,10 +0,4 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = normalizeOptions; | ||
var _helperValidatorOption = require("@babel/helper-validator-option"); | ||
const v = new _helperValidatorOption.OptionValidator("@babel/preset-flow"); | ||
function normalizeOptions(options = {}) { | ||
import { OptionValidator } from "@babel/helper-validator-option"; | ||
const v = new OptionValidator("@babel/preset-flow"); | ||
export default function normalizeOptions(options = {}) { | ||
let { | ||
@@ -11,0 +5,0 @@ all, |
{ | ||
"name": "@babel/preset-flow", | ||
"version": "7.21.4-esm", | ||
"version": "7.21.4-esm.1", | ||
"description": "Babel preset for all Flow plugins.", | ||
@@ -23,12 +23,12 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.21.4-esm", | ||
"@babel/helper-validator-option": "^7.21.4-esm", | ||
"@babel/plugin-transform-flow-strip-types": "^7.21.4-esm" | ||
"@babel/helper-plugin-utils": "^7.21.4-esm.1", | ||
"@babel/helper-validator-option": "^7.21.4-esm.1", | ||
"@babel/plugin-transform-flow-strip-types": "^7.21.4-esm.1" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.0.0-0 || 7.21.4-esm" | ||
"@babel/core": "^7.0.0-0 || 7.21.4-esm.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.4-esm", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm" | ||
"@babel/core": "^7.21.4-esm.1", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm.1" | ||
}, | ||
@@ -40,3 +40,3 @@ "homepage": "https://babel.dev/docs/en/next/babel-preset-flow", | ||
}, | ||
"type": "commonjs" | ||
"type": "module" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
6866
41