Skip to content

Commit

Permalink
Use toString() to export string instead of URL object
Browse files Browse the repository at this point in the history
  • Loading branch information
marella committed Jun 18, 2021
1 parent 5169e1c commit a7d3408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -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();`;
};

0 comments on commit a7d3408

Please sign in to comment.