@babel/plugin-syntax-import-assertions
Advanced tools
Comparing version 7.24.7 to 7.25.6
@@ -12,4 +12,20 @@ "use strict"; | ||
name: "syntax-import-assertions", | ||
manipulateOptions(opts, parserOpts) { | ||
parserOpts.plugins.push("importAssertions"); | ||
manipulateOptions(opts, { | ||
plugins | ||
}) { | ||
for (let i = 0; i < plugins.length; i++) { | ||
const plugin = plugins[i]; | ||
if (plugin === "importAttributes") { | ||
plugins[i] = ["importAttributes", { | ||
deprecatedAssertSyntax: true | ||
}]; | ||
return; | ||
} | ||
if (Array.isArray(plugin) && plugin[0] === "importAttributes") { | ||
if (plugin.length < 2) plugins[i].push({}); | ||
plugin[1].deprecatedAssertSyntax = true; | ||
return; | ||
} | ||
} | ||
plugins.push("importAssertions"); | ||
} | ||
@@ -16,0 +32,0 @@ }; |
{ | ||
"name": "@babel/plugin-syntax-import-assertions", | ||
"version": "7.24.7", | ||
"version": "7.25.6", | ||
"description": "Allow parsing of the module assertion attributes in the import statement", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.24.7" | ||
"@babel/helper-plugin-utils": "^7.24.8" | ||
}, | ||
@@ -26,3 +26,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.24.7" | ||
"@babel/core": "^7.25.2" | ||
}, | ||
@@ -29,0 +29,0 @@ "engines": { |
@@ -15,4 +15,7 @@ /* This file is automatically generated by scripts/generators/tsconfig.js */ | ||
"path": "../../packages/babel-helper-plugin-utils" | ||
}, | ||
{ | ||
"path": "../../packages/babel-core" | ||
} | ||
] | ||
} |
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
51
67795