pug-loader
Advanced tools
Comparing version 2.2.1 to 2.3.0
# Change log | ||
## 2.3.0 / 2016-08-22 | ||
- Use explicit pug-walk dependency; fixes installation on npm v2 | ||
- Allow setting Pug options from webpack.config.js's `pugLoader` property | ||
## 2.2.1 / 2016-08-06 | ||
@@ -4,0 +9,0 @@ |
@@ -5,2 +5,3 @@ var path = require("path"); | ||
var nodeResolve = require("resolve").sync; | ||
var walk = require('pug-walk'); | ||
@@ -14,11 +15,9 @@ module.exports = function(source) { | ||
modulePaths.runtime = nodeResolve("pug-runtime", {basedir: dirname(modulePaths.pug)}); | ||
modulePaths.walk = nodeResolve("pug-walk", {basedir: dirname(modulePaths.pug)}); | ||
var pug = require(modulePaths.pug); | ||
var load = require(modulePaths.load); | ||
var walk = require(modulePaths.walk); | ||
var req = loaderUtils.getRemainingRequest(this).replace(/^!/, ""); | ||
var query = loaderUtils.parseQuery(this.query); | ||
var query = loaderUtils.getLoaderConfig(this, "pugLoader"); | ||
@@ -25,0 +24,0 @@ var loadModule = this.loadModule; |
{ | ||
"name": "pug-loader", | ||
"version": "2.2.1", | ||
"version": "2.3.0", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -11,2 +11,3 @@ "description": "Pug loader module for Webpack", | ||
"loader-utils": "~0.2.5", | ||
"pug-walk": "^1.0.0", | ||
"resolve": "^1.1.7" | ||
@@ -13,0 +14,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2
9160
4
8
145
+ Addedpug-walk@^1.0.0