File tree Expand file tree Collapse file tree
third_party/github.com/browserify/browserify Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ def _npm_umd_bundle(ctx):
4848 inputs = inputs ,
4949 outputs = [output ],
5050 arguments = [args ],
51- # browserify may load files from nodejs but these aren't declared as action inputs
52- # looks like:
53- # ERROR: /workdir/internal/npm_install/test/BUILD.bazel:50:1: Couldn't build file internal/npm_install/test/sinon.umd.js: Generated UMD bundle for sinon npm package [browserify] failed (Exit 1)
54- # Error: Cannot find module 'process/browser.js' from '/b/f/w/bazel-out/host/bin/external/build_bazel_rules_nodejs/internal/npm_install/browserify-wrapped.runfiles/build_bazel_rules_nodejs/third_party/github.com/browserify/browserify
55- # TODO(alexeagle): remove this line and make the tests work with RBE
56- execution_requirements = {"local" : "1" },
5751 )
5852
5953 return [
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ echo "Compiling browserify with ncc"
1111echo " Local mod: revert https://github.com/browserify/browserify/pull/1801"
1212sed -i ' s#parent.id !== self._mdeps.top.id#parent.id#' third_party/github.com/browserify/browserify/index.js
1313
14+ echo " Local mod: workaround https://github.com/zeit/ncc/issues/461"
15+ sed -i " s#require('process/browser.js')#require('./browser1')#" third_party/github.com/browserify/browserify/main.js
16+
1417echo " Copy LICENSE"
1518cp -f ./node_modules/browserify/LICENSE ./third_party/github.com/browserify/browserify
1619
Original file line number Diff line number Diff line change 1- var nextTick = require ( 'process/browser.js ' ) . nextTick ;
1+ var nextTick = require ( './browser1 ' ) . nextTick ;
22var apply = Function . prototype . apply ;
33var slice = Array . prototype . slice ;
44var immediateIds = { } ;
You can’t perform that action at this time.
0 commit comments