-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--node and --basedir appear to not be working #78
Comments
These work in browser-run (https://github.com/juliangruber/browser-run/blob/master/test/electron.js), which this is just a wrapper of. Can you share a reproduction case? :) |
Yeah, sorry for the sparse details, let me whip something up. |
Ok, writing down some notes of the problem I identified: In
This is indeed true, and can be seen here: // Use existing http(s) server with {loc: 'http://url'},
// this skips creating inner http server in _createSourceUrl.
// Use name "loc" because it's the property browser-run uses.
if (this.opts.loc) {
return cb(this.opts.loc);
}
if (this.opts.nodeIntegration) {
return this._createNodeUrl(cb)
}
this._createSourceUrl(cb);
}; While options from tape-run are passed directly to browser-run: browser-run overrides some of these in all cases: launch(extend(opts, {
loc: 'http://localhost:' + port,
name: opts.browser,
bundle: bundle
}), function(err, _browser){ https://github.com/juliangruber/browser-run/blob/master/index.js#L98-L102 Note, loc is set, therefore overriding the critical Let me dig into the electron tests in browser run to see if I am missing something or something is getting overlooked. |
Maybe I am mistaken here (still digging around), but the
--node
and--basedir
flags are no longer working because tape-run sets theloc
option inelectron-stream
, which disables these.The text was updated successfully, but these errors were encountered: