0.0.2 • Published 5 years ago

webpack-stats-extract-module-ids v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

webpack-stats-extract-ids

npm, github

A utility to get a mapping between webpack IDs and modules

Usage

yarn add webpack-bundle-diff-add-children

const getModuleIds = require('webpack-stats-extract-ids').getModuleIds;

// Get your bundle stats somehow
const webpackStats = require('fs').readFileSync('./stats.json', 'utf-8');

// Derive webpack-bundle-diff data
const moduleIdToNameMap = getModuleIds(webpackStats);

Development

yarn # install dependencies
yarn build # build.             Can also use `rollup -c`
yarn watch # build with watch.  Can also use `rollup -cw`
yarn jest # run tests
0.0.2

5 years ago

0.0.1

5 years ago