-
Notifications
You must be signed in to change notification settings - Fork 18
ES import(specifier) #81
Comments
Note that, while |
@Kovensky fair point, it is a new binding form that isn't a function. So maybe it is best to maintain |
We should probably close dojo/meta#133 in favor of this one @kitsonk ? |
We also need to keep an eye on microsoft/TypeScript#14495 in relationship to this. It may obviate us doing anything. |
Currently targeted for TS 2.3.1. |
This has been implemented in TypeScript 2.4.1 and is considered syntax that is down emitted to ES5. Therefore we have no need to implement this anymore. |
Enhancement
ECMAScript has a Stage 3 proposal for dynamic imports, using the syntax
import(specifier)
which solves the challenges around dynamic non-top level imports in code.There is some work on TypeScript to support this within TypeScript, but would still need a global "shim" to provide the functionality. I think there are three things to consider:
dojo/shim/import
(though it will likely need to be global)dojo/loader
to exposeimport()
as well asrequire()
anddefine()
?dojo/core/load
and migrate the webpack loader functionality into the shim.The text was updated successfully, but these errors were encountered: