json-import-loader
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -21,5 +21,5 @@ "use strict"; | ||
var newContent = content.replace(/"import!(.*?)"/gi, function (_, group) { | ||
return "(\n () => {\n var result = require(" + loaderUtils.stringifyRequest(loaderContext, group) + ")\n if (typeof result === 'function') {\n result = result();\n }\n return result;\n }\n)()"; | ||
return "(\n function() {\n var result = require(" + loaderUtils.stringifyRequest(loaderContext, group) + ")\n if (typeof result === 'function') {\n result = result();\n }\n return result;\n }\n)()"; | ||
}); | ||
done(null, newContent); | ||
} |
{ | ||
"name": "json-import-loader", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Allows import files into a json file, contains webpack-loader and node API.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
220696