-
exposify::config
-
The config which is used by exposify to determine which require statemtents to replace and how. You need to set this or provide it via the
EXPOSIFY_CONFIG
environment variable.// setting from javascript exposify.config = { jquery: '$', three: 'THREE' };
# setting from command line EXPOSIFY_CONFIG='{ "jquery": "$", "three": "THREE" }' browserify -t exposify ...
-
exposify::expose
-
Exposes the expose function that operates on a string
-
exposify::filePattern
-
Regex pattern of files whose content is exposified
-
exposify(file) → {TransformStream}
-
browserify transform which exposes globals as modules that can be required.
Parameters:
Name Type Description file
string file whose content is to be transformed
Returns:
transform that replaces require statements found in the code with global assigments
- Type
- TransformStream