Intent to implement and ship: import.meta in ES6 modules
56 views
Skip to first unread message
Jon Coppeard
unread,
May 22, 2018, 3:44:21 AM5/22/18
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
In an ES6 module, |import.meta| is new syntax that evaluates to an object that provides module-specific metadata from by the host environment.
Currently only the 'url' property is provided, which is the base URL of the executing module. This allows modules to locate resources relative to the module, so that module authors can easily bundle resource files with their modules.