@exodus/test 1.0.0-rc.68 → 1.0.0-rc.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundler/bundle.js +3 -2
- package/bundler/modules/url.cjs +4 -0
- package/package.json +1 -1
package/bundler/bundle.js
CHANGED
|
@@ -224,7 +224,7 @@ export const build = async (...files) => {
|
|
|
224
224
|
querystring: resolveRequire('querystring-es3'),
|
|
225
225
|
stream: resolveRequire('stream-browserify'),
|
|
226
226
|
timers: resolveRequire('timers-browserify'),
|
|
227
|
-
url:
|
|
227
|
+
url: api('url.cjs'),
|
|
228
228
|
util: dirname(resolveRequire('util/')),
|
|
229
229
|
zlib: resolveRequire('browserify-zlib'),
|
|
230
230
|
}
|
|
@@ -284,7 +284,8 @@ export const build = async (...files) => {
|
|
|
284
284
|
// Node.js (except node:test)
|
|
285
285
|
...Object.fromEntries(Object.entries(nodeUnprefixed).map(([k, v]) => [`node:${k}`, v])),
|
|
286
286
|
...nodeUnprefixed,
|
|
287
|
-
|
|
287
|
+
// Needed for polyfills but name conflicts with Node.js modules
|
|
288
|
+
'url/url.js': resolveRequire('url/url.js'),
|
|
288
289
|
// expect-related deps
|
|
289
290
|
'ansi-styles': api('ansi-styles.cjs'),
|
|
290
291
|
'jest-util': api('jest-util.js'),
|
package/bundler/modules/url.cjs
CHANGED
|
@@ -26,3 +26,7 @@ function fileURLToPath(url, options) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
module.exports = { ...urlLib, pathToFileURL, fileURLToPath }
|
|
29
|
+
|
|
30
|
+
const defineExport = (k, get) => Object.defineProperty(module.exports, k, { get, enumerable: true })
|
|
31
|
+
defineExport('URL', () => globalThis.URL)
|
|
32
|
+
defineExport('URLSearchParams', () => globalThis.URLSearchParams)
|