@bundle-stats/plugin-webpack-filter
Advanced tools
Comparing version 4.0.0-alpha.11 to 4.0.0-alpha.14
@@ -15,3 +15,2 @@ "use strict"; | ||
exports.default = (source, options = {}) => { | ||
var _a; | ||
const pathIgnorePattern = new RegExp(options.pathIgnorePattern || PATH_IGNORE_PATTERN); | ||
@@ -36,7 +35,7 @@ const builtAt = (0, get_1.default)('builtAt')(source); | ||
])(source); | ||
const modules = (_a = source === null || source === void 0 ? void 0 : source.modules) === null || _a === void 0 ? void 0 : _a.map(({ name, size, chunks: moduleChunks, modules: concatenatedModules }) => ({ | ||
const modules = source?.modules?.map(({ name, size, chunks: moduleChunks, modules: concatenatedModules }) => ({ | ||
name, | ||
size, | ||
chunks: moduleChunks === null || moduleChunks === void 0 ? void 0 : moduleChunks.filter((chunkId) => chunkId !== null && typeof chunkId !== 'undefined'), | ||
modules: concatenatedModules === null || concatenatedModules === void 0 ? void 0 : concatenatedModules.map((concatenatedModule) => ({ | ||
chunks: moduleChunks?.filter((chunkId) => chunkId !== null && typeof chunkId !== 'undefined'), | ||
modules: concatenatedModules?.map((concatenatedModule) => ({ | ||
name: concatenatedModule.name, | ||
@@ -43,0 +42,0 @@ size: concatenatedModule.size, |
{ | ||
"name": "@bundle-stats/plugin-webpack-filter", | ||
"version": "4.0.0-alpha.11", | ||
"version": "4.0.0-alpha.14", | ||
"description": "BundleStats webpack filter plugin", | ||
@@ -54,3 +54,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "dfbde3ec1aca1d667cefbb93b66205c95c6feb4e" | ||
"gitHead": "acd6e6e99679ef3216e8022910d5e2d1d080f118" | ||
} |
Sorry, the diff of this file is not supported yet
17567
246