html-loader
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -53,5 +53,5 @@ "use strict"; | ||
name = attribute.prefix ? `${attribute.prefix}:${name}` : name; | ||
const handlers = options.sources.list.get(tagName.toLowerCase()) || options.sources.list.get("*"); | ||
const handlers = new Map([...(options.sources.list.get("*") || new Map()), ...(options.sources.list.get(tagName.toLowerCase()) || new Map())]); | ||
if (!handlers) { | ||
if (handlers.size === 0) { | ||
return; | ||
@@ -58,0 +58,0 @@ } |
@@ -912,3 +912,3 @@ "use strict"; | ||
return ""; | ||
} // TODO simplif in the next major release | ||
} // TODO simpify in the next major release | ||
@@ -918,3 +918,4 @@ | ||
const fileURLToHelper = typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function" ? loaderContext.utils.contextify(loaderContext.context, getURLRuntime) : contextify(loaderContext.context, getURLRuntime); | ||
const context = loaderContext.context || loaderContext.rootContext; | ||
const fileURLToHelper = typeof loaderContext.utils !== "undefined" && typeof loaderContext.utils.contextify === "function" ? loaderContext.utils.contextify(context, getURLRuntime) : contextify(context, getURLRuntime); | ||
let code = options.esModule ? `import ${GET_SOURCE_FROM_IMPORT_NAME} from "${fileURLToHelper}";\n` : `var ${GET_SOURCE_FROM_IMPORT_NAME} = require("${fileURLToHelper}");\n`; | ||
@@ -921,0 +922,0 @@ |
{ | ||
"name": "html-loader", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Html loader module for webpack", | ||
@@ -52,4 +52,4 @@ "license": "MIT", | ||
"@babel/preset-env": "^7.14.7", | ||
"@commitlint/cli": "^13.1.0", | ||
"@commitlint/config-conventional": "^13.1.0", | ||
"@commitlint/cli": "^14.1.0", | ||
"@commitlint/config-conventional": "^14.1.0", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
@@ -56,0 +56,0 @@ "babel-jest": "^27.0.5", |
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
68726
1227