broccoli-webpack-cached
Advanced tools
Comparing version 0.3.1-beta2 to 0.3.1-beta3
@@ -114,3 +114,3 @@ 'use strict'; | ||
this.options.plugins.push( | ||
new webpack.ResolverPlugin([PreventResolveSymlinkPlugin]) | ||
PreventResolveSymlinkPlugin | ||
); | ||
@@ -117,0 +117,0 @@ } |
{ | ||
"name": "broccoli-webpack-cached", | ||
"version": "0.3.1-beta2", | ||
"version": "0.3.1-beta3", | ||
"description": "Yet another webpack plugin for Broccoli. This one relies on webpack's caching for speed, but does it in a way that works well as a broccoli plugin (symlinking from the webpack cache to the output folder as needed).", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"symlink-or-copy": "^1.0.1", | ||
"webpack": "timmfin/webpack#mtime-for-caching" | ||
"webpack": "timmfin/webpack#mtime-for-caching-plus-puge-fix" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
@@ -7,6 +7,10 @@ // This plugin will prevent the ResultSymlinkPlugin result plugin from running, so | ||
var PreventResolveSymlinkPlugin = { | ||
apply: function(resolver) { | ||
resolver.plugin('result', function(request, callback) { | ||
// Call the callback to prevent any other "result" plugins from running | ||
callback(null, request); | ||
apply: function(compiler) { | ||
compiler.plugin("after-resolvers", function(compiler) { | ||
function onlyNotResultSymlinkPluginFuncs(func) { | ||
return func.toString().indexOf('resolved symlink to') === -1; | ||
} | ||
compiler.resolvers.normal._plugins.result = compiler.resolvers.normal._plugins.result.filter(onlyNotResultSymlinkPluginFuncs); | ||
compiler.resolvers.context._plugins.result = compiler.resolvers.normal._plugins.result.filter(onlyNotResultSymlinkPluginFuncs); | ||
}); | ||
@@ -13,0 +17,0 @@ } |
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
59419
914