You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there any plans to support more native-like require and module globals when using browserify --node ?
For example:
index.js
console.log(require.resolve('url'))
Prints url with node:
node index.js
However, throws an error with browserify:
browserifyindex.js--node|node
TypeError: Object function (e){var n=t[o][1][e];return s(n?n:e)} has no method 'resolve'
at Object.<anonymous> ([stdin]:2:21)
at s ([stdin]:1:254)
at e ([stdin]:1:425)
at [stdin]:1:443
at Object.<anonymous> ([stdin]-wrapper:6:22)
at Module._compile (module.js:456:26)
at evalScript (node.js:536:25)
at Socket.<anonymous> (node.js:154:11)
at Socket.emit (events.js:117:20)
at _stream_readable.js:943:16
The text was updated successfully, but these errors were encountered:
Are there any plans to support more native-like
require
andmodule
globals when usingbrowserify --node
?For example:
index.js
Prints
url
with node:However, throws an error with browserify:
The text was updated successfully, but these errors were encountered: