diff options
| author | 2022-07-11 02:12:23 -0700 | |
|---|---|---|
| committer | 2022-07-11 02:12:23 -0700 | |
| commit | a20a341729d40dd28ca7c8b32053189c96467935 (patch) | |
| tree | 806d43d1af00058dbcd04f282d0da03ba9aa92d0 | |
| parent | 7381c33f76a55447c8110b45fa2fd774a1b3f706 (diff) | |
| download | bun-a20a341729d40dd28ca7c8b32053189c96467935.tar.gz bun-a20a341729d40dd28ca7c8b32053189c96467935.tar.zst bun-a20a341729d40dd28ca7c8b32053189c96467935.zip | |
Move symbol
| -rw-r--r-- | src/bun.js/depd.exports.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bun.js/depd.exports.js b/src/bun.js/depd.exports.js index bb5420d67..04ed01555 100644 --- a/src/bun.js/depd.exports.js +++ b/src/bun.js/depd.exports.js @@ -1,3 +1,6 @@ +// TODO: remove this module from being bundled into bun +// This is a temporary workaround for a CommonJS <> ESM interop issue. + /*! * depd * Copyright(c) 2015 Douglas Christopher Wilson @@ -83,8 +86,9 @@ var require_browser = __commonJS({ var import_depd = __toESM(require_browser()); var bundle_default = import_depd.default; +function depd(...args) { + return args.length ? bundle_default(...args) : bundle_default; +} depd[Symbol.for("CommonJS")] = true; // TODO: this requires hacky default export -export default function depd(...args) { - return args.length ? bundle_default(...args) : bundle_default; -}
\ No newline at end of file +export default depd; |
