We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 761013c commit 6bc6f63Copy full SHA for 6bc6f63
src/utils/url.mjs
@@ -35,7 +35,7 @@ export const loadFromURL = async url => {
35
* @returns {Promise<any>} The imported module
36
*/
37
export const importFromURL = async url => {
38
- const useJSONAssertion = extname(String(parsed)) === '.json';
+ const useJSONAssertion = extname(String(url)) === '.json';
39
40
const parsed = toParsedURL(url);
41
0 commit comments