-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed as not planned
Labels
blockedPRs that are blocked by other issues or PRs.PRs that are blocked by other issues or PRs.esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.stale
Description
What is the problem this feature will solve?
tried doing:
code = 'console.log("hi")'
blob = new Blob([code], { type: 'text/javascript' })
url = URL.createObjectURL(blob)
import(url)but failed with:
Only URLs with a scheme in: file and data are supported by the default ESM loader. Received protocol 'blob:'
What is the feature you are proposing to solve the problem?
being able to import dynamic generated code...
What alternatives have you considered?
converting it to a data: url works as a work around...
JounQin, jimmywarting, bathos, jangxyz, jorenbroekema and 11 more
Metadata
Metadata
Assignees
Labels
blockedPRs that are blocked by other issues or PRs.PRs that are blocked by other issues or PRs.esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.stale
Type
Projects
Status
In Progress