global.location and global.document rather than setting them. This avoids TypeErrors on Electron.nodeIntegration disabledHotfix again for Electron support, quite embarassing at this point. Verified using the awesome Electron Fiddle tool.
1.4.7 when minified file is used.Thanks! @lexaknyazev
url module import to Node.js-only block.url on Node.js but are also using Webpack.location.href compatible with Node versions earlier than 10.12.0 again.Improve location.href so that Dart's Uri.current works for more paths.
location.href a getter so Dart‘s Uri.current changes along with the process’s working directory.Fixes for Angular 6+ applications using compiled Dart package w/ preamble:
Uri.base up to date when the current working directory changes.getPreamble(additionalGlobals: ["__dirname", ...]).lib/preamble.min.js and by calling getPreamble(minified: true).global.self = global (old) vs. var self = Object.create(global) (new).Set global.location so that Uri.base() works properly on Windows in most cases.
Define global.exports so that it's visible to the compiled JS.