-
Notifications
You must be signed in to change notification settings - Fork 27
List of internal LMD events
before module cache check
-
{String}
moduleName -
{Object}
module -
{String}
type
Listener returns context: no
calls when module is goint to eval or call
-
{String}
moduleName -
{Object}
module
Listener returns context: no
applies code coverage for module
-
{String}
moduleName -
{Object}
module
Listener returns context: yes
creates promise
no
Listener returns context: no
code type check request: plain or lmd-module
-
{String}
moduleName -
{String}
module -
{String}
isPlainCode default value
Listener returns context: yes
module load error
-
{String}
moduleName -
{Object}
module
Listener returns context: no
requests indexOf polifill
-
{Function|undefined}
arrayIndexOf default indexOf value
Listener returns context: yes
requests JSON polifill with only stringify function!
-
{Object|undefined}
JSON default JSON value
Listener returns context: yes
-
{String}
moduleName -
{Function}
callback -
{String}
type
Listener returns context: yes [asap, returnResult]
parallel module request for require.async(['a', 'b', 'c']) etc
-
{Array}
moduleNames list of modules to init -
{Function}
callback this callback will be called when module inited -
{Function}
method method to call for init
Listener returns context: yes empty environment
race module request eg for cases when some async modules are required simultaneously
-
{String}
moduleName race for module name -
{Function}
callback this callback will be called when module inited
Listener returns context: yes returns callback if race is empty or only 1 item in it
fires before stats plugin counts require same as *:rewrite-shortcut but without triggering shortcuts:before-resolve event
-
{String}
moduleName race for module name -
{String}
module this callback will be called when module inited
Listener returns context: yes returns modified moduleName and module itself
request for shortcut rewrite
-
{String}
moduleName race for module name -
{String}
module this callback will be called when module inited
Listener returns context: yes returns modified moduleName and module itself
adds module parameters for statistics
-
{String}
moduleName -
{Object}
moduleOption preprocessed data for lines, conditions and functions
Listener returns context: no
somethins is request raw module stats
-
{String}
moduleName -
{Object}
result default stats
Listener returns context: yes
somethins is request processed module stats
-
{String}
moduleName -
{Object}
result default stats
Listener returns context: yes
something tells stats to overwrite module type
-
{String}
moduleName -
{String}
packageType
Listener returns context: no
Module wrap request
-
{String}
moduleName -
{String}
module this module will be wrapped -
{String}
contentTypeOrExtension file content type or extension to avoid wrapping json file
Listener returns context: yes
when async.js require is going to return module, uses for cache async module
-
{String}
moduleName -
{String}
module module content
Listener returns context: no
requests file register using some environment functions non XHR
-
{String}
moduleName -
{String}
module -
{Function}
callback this callback will be called when module inited
Listener returns context: no
js.js plugin requests for enviroment-based module init (importScripts or node require)
-
{String}
moduleName -
{String}
module
Listener returns context: yes
after module register event
-
{String}
moduleName -
{Object}
module
Listener returns context: no
before module register event
-
{String}
moduleName -
{Object}
module
Listener returns context: no
request for fake require
-
{String}
moduleName -
{Object}
module
Listener returns context: yes wraps require
moduleName is shortcut and its goint to resolve with actual name
-
{String}
moduleName -
{Object}
module
Listener returns context: no
stats is going to return stats data this event can modify that data
-
{String|undefined}
moduleName -
{Object}
stats_results default stats
Listener returns context: yes depend on moduleName value returns empty array or replaces stats_results