Another helpful place for a hook might be an executeDependencies type
thing, currently the list of dependencies returned by instantiate are all
loaded and ensureEvaluated is run on them, this makes sense for ES6 modules
which always evaluate all dependencies before the module that depends on
them,
I've been doing work with the loader hooks and one gap that stands out is
that there is no hook to let you manipulate the exports and imports of an
module without parsing it yourself, in other words if you want to add,
remove, or modify exports or imports of a module you have to write your own
-loader.
/caridy
On Jun 24, 2014, at 10:17 AM, Calvin Metcalf calvin.metc...@gmail.com wrote:
I've been doing work with the loader hooks and one gap that stands out is
that there is no hook to let you manipulate the exports and imports of an
module without parsing it yourself, in other words
Bedford can provide more details on how he implemented this process in
es6-module-loader.
/caridy
On Jun 24, 2014, at 10:17 AM, Calvin Metcalf calvin.metc...@gmail.com
wrote:
I've been doing work with the loader hooks and one gap that stands out
is that there is no hook to let you
workflow. Maybe Guy Bedford can provide
more details on how he implemented this process in es6-module-loader.
/caridy
On Jun 24, 2014, at 10:17 AM, Calvin Metcalf calvin.metc...@gmail.com wrote:
I've been doing work with the loader hooks and one gap that stands out
doing work with the loader hooks and one gap that stands out is
that there is no hook to let you manipulate the exports and imports of an
module without parsing it yourself, in other words if you want to add,
remove, or modify exports or imports of a module you have to write your own
parsing
, at 10:17 AM, Calvin Metcalf calvin.metc...@gmail.com
wrote:
I've been doing work with the loader hooks and one gap that stands out
is that there is no hook to let you manipulate the exports and imports of
an module without parsing it yourself, in other words if you want to add,
remove
on how he implemented this process in
es6-module-loader.
/caridy
On Jun 24, 2014, at 10:17 AM, Calvin Metcalf calvin.metc...@gmail.com
wrote:
I've been doing work with the loader hooks and one gap that stands out
is that there is no hook to let you manipulate the exports and imports
On Tuesday, June 24, 2014 11:38 AM, Calvin Metcalf calvin.metc...@gmail.com
wrote:
Say you wanted to add a hook which automatically added an export named
filepath to a module is the path to the file
For this use case and other similar ones it'd be nice if the `metadata`
property of load
9 matches
Mail list logo