Skip to content

Commit

Permalink
removed DedupePlugin
Browse files Browse the repository at this point in the history
it's no longer needed for npm3
and causes many issues
  • Loading branch information
sokra committed Nov 15, 2016
1 parent ba93f84 commit 91cbb4c
Show file tree
Hide file tree
Showing 22 changed files with 6 additions and 680 deletions.
1 change: 0 additions & 1 deletion bin/config-optimist.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = function(optimist) {
.describe("optimize-max-chunks", "Try to keep the chunk count below a limit")
.describe("optimize-min-chunk-size", "Try to keep the chunk size above a limit")
.boolean("optimize-minimize").describe("optimize-minimize", "Minimize javascript and switches loaders to minimizing")
.boolean("optimize-dedupe").describe("optimize-dedupe", "Optimize duplicate module sources in the bundle")
.string("prefetch").describe("prefetch", "Prefetch this request")
.string("provide").describe("provide", "Provide these modules as free vars in all modules")
.boolean("labeled-modules").describe("labeled-modules", "Enables labeled modules")
Expand Down
5 changes: 0 additions & 5 deletions bin/config-yargs.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,6 @@ module.exports = function(yargs) {
describe: "Minimize javascript and switches loaders to minimizing",
group: OPTIMIZE_GROUP
},
"optimize-dedupe": {
type: "boolean",
describe: "Optimize duplicate module sources in the bundle",
group: OPTIMIZE_GROUP
},
"prefetch": {
type: "string",
describe: "Prefetch this request (Example: --prefetch ./file.js)",
Expand Down
6 changes: 0 additions & 6 deletions bin/convert-argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,6 @@ module.exports = function(yargs, argv, convertOptions) {
}));
});

ifBooleanArg("optimize-dedupe", function() {
ensureArray(options, "plugins");
var DedupePlugin = require("../lib/optimize/DedupePlugin");
options.plugins.push(new DedupePlugin());
});

ifArg("prefetch", function(request) {
ensureArray(options, "plugins");
var PrefetchPlugin = require("../lib/PrefetchPlugin");
Expand Down
319 changes: 0 additions & 319 deletions examples/dedupe/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions examples/dedupe/a/index.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/dedupe/a/x.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/dedupe/a/y.js

This file was deleted.

5 changes: 0 additions & 5 deletions examples/dedupe/b/index.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/dedupe/b/x.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/dedupe/b/y.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/dedupe/build.js

This file was deleted.

4 changes: 0 additions & 4 deletions examples/dedupe/example.js

This file was deleted.

Loading

0 comments on commit 91cbb4c

Please sign in to comment.