From a7d340812c1b23af80e42e686ba1cfb6c3593a39 Mon Sep 17 00:00:00 2001 From: Ravindra Marella Date: Fri, 18 Jun 2021 18:08:39 +0530 Subject: [PATCH] Use toString() to export string instead of URL object --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cd96226..f552193 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ module.exports = function () { const path = JSON.stringify(this.resourcePath); - return `export default new URL(${path}, import.meta.url);`; + return `export default new URL(${path}, import.meta.url).toString();`; };