Skip to content

Instantly share code, notes, and snippets.

View jamesmillerburgess's full-sized avatar
🎯
Focusing

James Burgess jamesmillerburgess

🎯
Focusing
View GitHub Profile
/* 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 =>
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',