bare-module 3.0.3 → 3.0.4
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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -257,7 +257,7 @@ const Module = module.exports = exports = class Module {
|
|
|
257
257
|
static createRequire (parentURL, opts = {}) {
|
|
258
258
|
const self = Module
|
|
259
259
|
|
|
260
|
-
if (typeof parentURL === 'string') parentURL =
|
|
260
|
+
if (typeof parentURL === 'string') parentURL = new URL(parentURL, 'file:')
|
|
261
261
|
|
|
262
262
|
let {
|
|
263
263
|
referrer = null,
|