mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge pull request #8774 from meteor/abernix/bundle-visualizer-ver-unpin
Remove check for standard-minifier-js@2.1.x from `bundle-visualizer`.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
Package.describe({
|
||||
version: '1.0.2',
|
||||
version: '1.0.3',
|
||||
summary: 'Meteor bundle analysis and visualization.',
|
||||
documentation: 'README.md',
|
||||
});
|
||||
|
||||
@@ -114,24 +114,9 @@ Meteor.methods({
|
||||
throw new Meteor.Error("no-stats-bundles", "Unable to retrieve stats");
|
||||
}
|
||||
|
||||
const validStatBundles = statBundles.filter(statBundle => {
|
||||
if (statBundle &&
|
||||
statBundle.stats &&
|
||||
statBundle.stats.minifier &&
|
||||
statBundle.stats.minifier.name === "standard-minifier-js" &&
|
||||
statBundle.stats.minifier.version.startsWith("2.1.")
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
if (! validStatBundles.length) {
|
||||
throw new Meteor.Error("no-valid-stats", "No valid stats bundles")
|
||||
}
|
||||
|
||||
return {
|
||||
name: "main",
|
||||
children: validStatBundles.map((statBundle, index, array) => ({
|
||||
children: statBundles.map((statBundle, index, array) => ({
|
||||
// TODO: If multiple bundles, could
|
||||
// show abbr. bundle names with:
|
||||
// `...${bundle.name.substr(-3)}`,
|
||||
|
||||
Reference in New Issue
Block a user