This file contains 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
/* eslint-disable no-console */ | |
// From: https://github.com/meteor/meteor/blob/devel/packages/non-core/bundle-visualizer/server.js | |
import { readFileSync } from 'fs'; | |
import get from 'lodash.get'; | |
import { WebAppInternals } from 'meteor/webapp'; | |
import { MAX_BUNDLE_SIZE } from '/imports/config/bundleSize'; | |
export const statFileFilter = f => |
This file contains 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
import fs from 'fs'; | |
import { WebAppInternals } from 'meteor/webapp'; | |
import * as fns from './meteor-bundle-size-check'; | |
jest.mock('fs'); | |
const STATIC_FILES_SAMPLE = { | |
'/hello.stats.json': { | |
type: 'json', |