Files
meteor/packages/dynamic-import

Remaining work:

  • Future-proof findImportedModuleIdentifiers for real import(...)
  • Source maps in development
  • Debugger stops at reasonable points in dev tools
  • Open another WebSocket? NO
  • Make import(...) work on the server
  • Modules are minified but not merged in production
    • Wrap modules with function to enable better minification
  • Babel transform from import(...) to module.importAsync(...)
  • Local module caching.
  • Compact previous state representation
  • Improve dependency resolution in packages/dynamic-import/server.js
  • Report static import/syntax/etc. errors for async files
  • What about old/new versions of code?
  • What about package pseudo-globals (imports)?
  • What about dynamic stubs?
  • Avoid creating dynamic files on the server.
  • Mp.dynamicImport could be implemented without the fallback on the server if we were sure the server had no dynamic files.
  • Batch multiple __dynamicImport method calls.
  • Make sure client-only reloads work (revisit _read caching).
  • Make sure path manipulation is Windows-safe.
  • Install dynamic modules with correct meteorInstall options.
  • Tests!