Closed petermuessig closed 1 year ago
With this change we add support for import.meta.url and import.meta.resolve() for the transpilation step of the plugin.
import.meta.url
import.meta.resolve()
This is how import.meta.url is handled:
// ES syntax: import.meta.url; // UI5 AMD-like syntax: sap.ui.define(["module"], function(module) { module.url; });
This is how import.meta.resolve(...) is handled:
import.meta.resolve(...)
// ES syntax: import.meta.resolve(...); // UI5 AMD-like syntax: sap.ui.define(["require"], function(require) { require.toUrl(...); });
Fixes #103
With this change we add support for
import.meta.url
andimport.meta.resolve()
for the transpilation step of the plugin.This is how
import.meta.url
is handled:This is how
import.meta.resolve(...)
is handled:Fixes #103