You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Destructuring assignment for dynamic import of value
It is said that modern bundlers perform tree-shaking for expressions like let {forEach} = ... If possible, it might be worth generating JavaScript output like var {forEach} = ...
The current implementation uses the module_system to find the path:string corresponding to the module_id, but it does not consider cases when there are multiple module_systems. Also, within the Js_name_of_module_id.string_of_module_id function, Js_packages_state.get_packages_info () is being used. The same function was used in the place where Pimport was compiled.
The text was updated successfully, but these errors were encountered:
A few more points to consider include:
Destructuring assignment for dynamic import of value
It is said that modern bundlers perform tree-shaking for expressions like
let {forEach} = ...
If possible, it might be worth generating JavaScript output likevar {forEach} = ...
The current implementation uses the module_system to find the
path:string
corresponding to the module_id, but it does not consider cases when there are multiple module_systems. Also, within theJs_name_of_module_id.string_of_module_id
function,Js_packages_state.get_packages_info ()
is being used. The same function was used in the place where Pimport was compiled.The text was updated successfully, but these errors were encountered: