0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-02 04:38:21 -05:00
denoland-deno/cli/tests/integration
Bartek Iwańczuk a65ce33fab
feat(compat): CJS/ESM interoperability (#13553)
This commit adds CJS/ESM interoperability when running in --compat mode.

Before executing files, they are analyzed and all CommonJS modules are
transformed on the fly to a ES modules. This is done by utilizing analyze_cjs()
functionality from deno_ast. After discovering exports and reexports, an ES
module is rendered and saved in memory for later use.

There's a caveat that all files ending with ".js" extension are considered as
CommonJS modules (unless there's a related "package.json" with "type": "module").
2022-02-27 14:38:45 +01:00
..
bundle_tests.rs feat(cli): add ignore directives to bundled code (#13309) 2022-01-12 13:05:06 +01:00
cache_tests.rs fix: don't crash when $HOME is a relative path (#13581) 2022-02-03 14:08:17 +01:00
compat_tests.rs feat(compat): CJS/ESM interoperability (#13553) 2022-02-27 14:38:45 +01:00
compile_tests.rs fix(compile): Support import maps (#13756) 2022-02-24 18:58:00 +05:30
coverage_tests.rs fix(coverage): merge coverage ranges (#13334) 2022-01-11 21:17:25 +01:00
doc_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
eval_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
fmt_tests.rs feat: auto-discover config file (#13313) 2022-01-17 20:10:17 -05:00
info_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
inspector_tests.rs tests: Add inspector tests for "Memory" and "Profile" tabs (#13476) 2022-01-24 16:07:08 +01:00
install_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
lint_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
lsp_tests.rs feat: allow specification of import map in config file (#13739) 2022-02-23 10:51:14 +11:00
mod.rs feat: deno vendor (#13670) 2022-02-16 13:14:19 -05:00
repl_tests.rs refactor: factor out CDP message types (#13551) 2022-02-07 17:05:49 +01:00
run_tests.rs fix(cli): disable config discovery for remote script (#13745) 2022-02-25 14:39:18 +09:00
test_tests.rs fix(test): use --no-prompt by default (#13777) 2022-02-26 14:49:50 +01:00
upgrade_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
vendor_tests.rs feat: deno vendor (#13670) 2022-02-16 13:14:19 -05:00
watcher_tests.rs feat(cli): add "--no-clear-screen" flag (#13454) 2022-01-31 17:39:39 +01:00
worker_tests.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00