--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
40
node_modules/center-align/utils.js
generated
vendored
Normal file
40
node_modules/center-align/utils.js
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* Lazily-required module dependencies (makes the application
|
||||
* faster)
|
||||
*/
|
||||
|
||||
var utils = require('lazy-cache')(require);
|
||||
|
||||
/**
|
||||
* Temporarily re-assign `require` to trick browserify and
|
||||
* webpack into reconizing lazy dependencies.
|
||||
*
|
||||
* This tiny bit of ugliness has the huge dual advantage of
|
||||
* only loading modules that are actually called at some
|
||||
* point in the lifecycle of the application, whilst also
|
||||
* allowing browserify and webpack to find modules that
|
||||
* are depended on but never actually called.
|
||||
*/
|
||||
|
||||
var fn = require;
|
||||
require = utils;
|
||||
|
||||
/**
|
||||
* Lazily required module dependencies
|
||||
*/
|
||||
|
||||
require('align-text', 'align');
|
||||
|
||||
/**
|
||||
* Restore `require`
|
||||
*/
|
||||
|
||||
require = fn;
|
||||
|
||||
/**
|
||||
* Expose `utils` modules
|
||||
*/
|
||||
|
||||
module.exports = utils;
|
||||
Loading…
Reference in a new issue