url-browser.js 486 B

1234567891011121314
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. */
  4. "use strict";
  5. // Browser shim for the Node `url` builtin, providing the `fileURLToPath` the
  6. // resolver uses. Node, Deno and Bun use the native `url` (so they get the fully
  7. // correct implementation); only browser bundles use this, wired in through the
  8. // package `browser` field. The implementation is a URL-based port — see
  9. // ./fileURLToPath.
  10. module.exports = {
  11. fileURLToPath: require("./fileURLToPath"),
  12. };