@webdiscus/pug-loader
Advanced tools
Comparing version 1.6.1 to 1.6.2-beta.0
# Change log | ||
## 1.6.2 (2022-01-21) | ||
- fix the path of dependencies in windows | ||
## 1.6.1 (2022-01-20) | ||
@@ -4,0 +7,0 @@ - added supports for resolving of aliases from webpack `resolve.plugins` by required resources, like styles, scripts |
{ | ||
"name": "@webdiscus/pug-loader", | ||
"version": "1.6.1", | ||
"version": "1.6.2-beta.0", | ||
"description": "The pug loader resolves paths and webpack aliases in a pug template and compiles it to HTML or into a template function.", | ||
@@ -79,3 +79,3 @@ "keywords": [ | ||
"prettier": "^2.5.1", | ||
"pug-plugin": "^1.2.2", | ||
"pug-plugin": "^1.2.3-beta.0", | ||
"rimraf": "^3.0.2", | ||
@@ -82,0 +82,0 @@ "tsconfig-paths-webpack-plugin": "^3.5.2", |
@@ -154,7 +154,8 @@ // the 'enhanced-resolve' package already used in webpack, don't need to define it in package.json | ||
const [, file] = /(?<=require\("|'|`)(.+)(?=`|'|"\))/.exec(value) || []; | ||
let resolvedPath = resolver.resolve(file, templateFile); | ||
const resolvedPath = resolver.resolve(file, templateFile); | ||
const dependencyFile = isWin ? path.normalize(resolvedPath) : resolvedPath; | ||
// Important: delete the file from require.cache to allow reloading cached files after changes by watch. | ||
delete require.cache[resolvedPath]; | ||
dependencies.push(resolvedPath); | ||
delete require.cache[dependencyFile]; | ||
dependencies.push(dependencyFile); | ||
@@ -161,0 +162,0 @@ return `require('${resolvedPath}')`; |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
57661
526
1
1