babel-plugin-injectcomponentcode
Advanced tools
+2
-2
@@ -9,3 +9,3 @@ const pluginSyntaxJsx = require("@babel/plugin-syntax-jsx").default; | ||
| module.exports = async function ({ types, template }, options) { | ||
| const ignorePathList = Array.isArray(options.globIgnorePath) ? ['node_modules/**',, ...options.globIgnorePath] : options.globIgnorePath; | ||
| const ignorePathList = Array.isArray(options.globIgnorePath) ? ['node_modules/**', ...options.globIgnorePath] : options.globIgnorePath; | ||
| const globMachedFileList = await glob(options.globMatchPath , { ignore: ignorePathList}) | ||
@@ -89,3 +89,3 @@ | ||
| }); | ||
| oldExportNode.replaceWith(newNode); | ||
@@ -92,0 +92,0 @@ } |
+1
-1
| { | ||
| "name": "babel-plugin-injectcomponentcode", | ||
| "version": "2.0.0", | ||
| "version": "2.0.1", | ||
| "description": "babel plugin react nextjs inject code", | ||
@@ -5,0 +5,0 @@ "private": false, |
6075
0.05%