Skip to content
Permalink
Browse files

module: loader getSource, getFormat, transform hooks

PR-URL: #30986
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
  • Loading branch information
GeoffreyBooth authored and guybedford committed Dec 15, 2019
1 parent 20fd123 commit 2551a21553d06e85790bdc96c6f1d528d0695d76
Showing with 741 additions and 342 deletions.
  1. +1 −1 doc/api/cli.md
  2. +300 −68 doc/api/esm.md
  3. +1 −1 lib/internal/errors.js
  4. +4 −2 lib/internal/main/check_syntax.js
  5. +0 −135 lib/internal/modules/esm/default_resolve.js
  6. +77 −0 lib/internal/modules/esm/get_format.js
  7. +35 −0 lib/internal/modules/esm/get_source.js
  8. +58 −26 lib/internal/modules/esm/loader.js
  9. +72 −0 lib/internal/modules/esm/resolve.js
  10. +7 −0 lib/internal/modules/esm/transform_source.js
  11. +22 −32 lib/internal/modules/esm/translators.js
  12. +4 −1 node.gyp
  13. +1 −0 test/es-module/test-esm-data-urls.js
  14. +6 −0 test/es-module/test-esm-get-source-loader.mjs
  15. +1 −3 test/es-module/test-esm-invalid-extension.js
  16. +12 −0 test/es-module/test-esm-loader-get-format.mjs
  17. +2 −3 test/es-module/test-esm-loader-invalid-format.mjs
  18. +2 −4 test/es-module/test-esm-loader-invalid-url.mjs
  19. +4 −2 test/es-module/test-esm-loader-search.js
  20. +6 −0 test/es-module/test-esm-transform-source-loader.mjs
  21. +10 −11 test/fixtures/es-module-loaders/builtin-named-exports-loader.mjs
  22. +19 −9 test/fixtures/es-module-loaders/example-loader.mjs
  23. +10 −0 test/fixtures/es-module-loaders/get-source.mjs
  24. +6 −17 test/fixtures/es-module-loaders/js-loader.mjs
  25. +10 −0 test/fixtures/es-module-loaders/loader-get-format.mjs
  26. +12 −3 test/fixtures/es-module-loaders/loader-invalid-format.mjs
  27. +4 −5 test/fixtures/es-module-loaders/loader-invalid-url.mjs
  28. +2 −2 test/fixtures/es-module-loaders/loader-shared-dep.mjs
  29. +15 −4 test/fixtures/es-module-loaders/loader-unknown-builtin-module.mjs
  30. +2 −2 test/fixtures/es-module-loaders/loader-with-dep.mjs
  31. +15 −4 test/fixtures/es-module-loaders/missing-dynamic-instantiate-hook.mjs
  32. +3 −3 test/fixtures/es-module-loaders/not-found-assert-loader.mjs
  33. +11 −0 test/fixtures/es-module-loaders/transform-source.mjs
  34. +1 −1 test/fixtures/es-modules/package-type-module/extension.unknown
  35. +2 −2 test/message/esm_loader_not_found.out
  36. +4 −1 test/parallel/test-bootstrap-modules.js
@@ -1383,6 +1383,6 @@ greater than `4` (its current default value). For more information, see the
[debugger]: debugger.html
[debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications
[emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor
[experimental ECMAScript Module loader]: esm.html#esm_resolve_hook
[experimental ECMAScript Module loader]: esm.html#esm_experimental_loaders
[libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html
[remote code execution]: https://www.owasp.org/index.php/Code_Injection

0 comments on commit 2551a21

Please sign in to comment.
You can’t perform that action at this time.