Skip to content

Instantly share code, notes, and snippets.

@ramasilveyra
Last active May 22, 2017 15:29
Show Gist options
  • Save ramasilveyra/60f84bd4d642e705915261f9c69201fa to your computer and use it in GitHub Desktop.
Save ramasilveyra/60f84bd4d642e705915261f9c69201fa to your computer and use it in GitHub Desktop.
webpack 1 and webpack 2 module resolver has some differeces, use this to find the modules that differs
'use strict';
const webpack1Stats = require('./webpack1-stats.json');
const webpack2Stats = require('./webpack2-stats.json');
const modules = new Set();
webpack1Stats.modules.forEach((wModule) => {
modules.add(wModule.name);
});
webpack2Stats.modules.forEach((wModule) => {
modules.delete(wModule.name);
});
console.log(modules);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment