webpack 1 and webpack 2 module resolver has some differeces, use this to find the modules that differs.
Last active
May 22, 2017 15:29
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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