Skip to content

Commit e7635cb

Browse files
committed
Add support for transforming environment variable checks
1 parent 8b204b2 commit e7635cb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tools/test-bundles/scripts/browserify

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ browserify_envify="${node_modules}/envify"
3838
# Define the path to the `browserify` plugin which allows `proxyquire` to be run in a browser:
3939
browserify_proxyquire="${node_modules}/proxyquire-universal"
4040

41-
# Define command-line options to be used when invoking the `browserify` executable:
42-
browserify_flags="-t [ ${browserify_envify} --NODE_ENV browser ] -p=${browserify_proxyquire}"
43-
4441
# Define a package filename identifier:
4542
packages_file='package.json'
4643

@@ -232,7 +229,7 @@ create_bundles() {
232229
# $1 - source files
233230
# $2 - destination
234231
create_bundle() {
235-
"${browserify}" "${browserify_flags}" $(echo "$1") > "$2"
232+
"${browserify}" "-t=${browserify_envify}" "-p=${browserify_proxyquire}" $(echo "$1") > "$2"
236233
}
237234

238235
# Main execution sequence:

0 commit comments

Comments
 (0)