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();`; };