@babel/plugin-syntax-import-assertions
Advanced tools
+4
-3
| import { declare } from '@babel/helper-plugin-utils'; | ||
| var index = declare(api => { | ||
| api.assertVersion("8.0.0-beta.3"); | ||
| api.assertVersion("^7.0.0-0 || ^8.0.0 || 8.0.0-beta.4"); | ||
| const isPlugin = (plugin, name) => name === "plugin" || Array.isArray(plugin) && plugin[0] === "plugin"; | ||
@@ -16,5 +16,6 @@ const options = plugin => Array.isArray(plugin) && plugin.length > 1 ? plugin[1] : {}; | ||
| if (isPlugin(plugin, "importAttributes")) { | ||
| plugins.splice(i, 1, "deprecatedImportAssert", ["importAttributes", Object.assign({}, options(plugin), { | ||
| plugins.splice(i, 1, "deprecatedImportAssert", ["importAttributes", { | ||
| ...options(plugin), | ||
| deprecatedAssertSyntax: true | ||
| })]); | ||
| }]); | ||
| return; | ||
@@ -21,0 +22,0 @@ } |
+4
-4
| { | ||
| "name": "@babel/plugin-syntax-import-assertions", | ||
| "version": "8.0.0-beta.3", | ||
| "version": "8.0.0-beta.4", | ||
| "description": "Allow parsing of the module assertion attributes in the import statement", | ||
@@ -19,9 +19,9 @@ "repository": { | ||
| "dependencies": { | ||
| "@babel/helper-plugin-utils": "^8.0.0-beta.3" | ||
| "@babel/helper-plugin-utils": "^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/core": "^8.0.0-beta.4" | ||
| }, | ||
@@ -28,0 +28,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
31
3.33%6061
-0.16%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added