Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

broccoli-webpack-cached

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

broccoli-webpack-cached - npm Package Compare versions

Comparing version 0.3.1-beta2 to 0.3.1-beta3

2

index.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc