deno/cli
Ryan Dahl a2969ecd27
Deno.bundle supports targets < ES2017 (#6346)
This commit provides a "system_loader_es5.js" bundle loader which will be added
to the bundle when the target is < ES2017, which is the minimum target syntax
required for "system_loader.js".

Supports #5913 (via Deno.bundle()) with a couple caveats:

* Allowing "deno bundle" to take a different target is not supported, as we
specifically ignore "target" when passed in a TypeScript config file. This is
because deno bundle is really intended to generate bundles that work in Deno.
It is an unintentional side effect that some bundles are loadable in browsers.

* While a target of "es3" will be accepted, the module loader will still only be
compatible with ES5 or later. Realistically no one should be expecting bundles
generated by Deno to be used on IE8 and prior, and there is just too much
"baggage" to support that at this point.

This is a minor variation of 75bb9d, which exposed some sort of internal V8 bug.
Ref #6358

This is 100% authored by Kitson Kelly. Github might change the author when landing
so I'm leaving this in:
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-06-18 09:06:48 -04:00
..
doc Revert "feat: add Deno.osName()" (#6261) 2020-06-12 09:53:53 -04:00
js Deno.bundle supports targets < ES2017 (#6346) 2020-06-18 09:06:48 -04:00
ops unixpacket should also return byte length on send (#6291) 2020-06-15 12:20:45 -04:00
tests Deno.bundle supports targets < ES2017 (#6346) 2020-06-18 09:06:48 -04:00
build.rs
Cargo.toml chore: remove glob dependency (#6317) 2020-06-16 17:29:43 -04:00
checksum.rs
colors.rs Add diff for "deno fmt --check" (#5599) 2020-06-06 09:07:59 -04:00
deno_dir.rs
diagnostics.rs
diff.rs Add diff for "deno fmt --check" (#5599) 2020-06-06 09:07:59 -04:00
disk_cache.rs fix: WebAssembly runtime error propagation (#6137) 2020-06-11 11:03:27 -04:00
file_fetcher.rs fix(cache): apply redirection limit for cached files (#6308) 2020-06-15 23:46:48 +02:00
flags.rs docs: Update standard library and testing manual pages (#6323) 2020-06-18 06:13:56 -04:00
fmt.rs chore: move fmt test to integration tests (#6340) 2020-06-17 21:50:30 +02:00
fmt_errors.rs feat: "deno lint" subcommand (#6125) 2020-06-08 14:06:20 +02:00
fs.rs
global_state.rs fix(compiler): JSX compilation and provide better error message (#6300) 2020-06-15 17:53:05 +02:00
global_timer.rs
http_cache.rs
http_util.rs
import_map.rs
inspector.rs
installer.rs To find home dir, use only $USERPROFILE on Windows, $HOME on Posix (#6132) 2020-06-05 22:15:05 +02:00
js.rs
lint.rs feat(lint): add --rules flag (#6264) 2020-06-12 16:42:12 +02:00
lockfile.rs
main.rs feat(lint): add --rules flag (#6264) 2020-06-12 16:42:12 +02:00
metrics.rs
module_graph.rs fix: several regressions in TS compiler (#6177) 2020-06-10 16:02:41 +02:00
msg.rs
op_error.rs
permissions.rs Move to allowlist and blocklist (#6282) 2020-06-13 13:09:39 -04:00
README.md
repl.rs
resolve_addr.rs
signal.rs
source_maps.rs
startup_data.rs
state.rs
swc_util.rs fix: handle @deno-types in export {} (#6202) 2020-06-10 14:19:41 +02:00
test_runner.rs deno test should run mjs files (#6122) 2020-06-05 17:01:44 -04:00
test_util.rs
tokio_util.rs
tsc.rs fix: several regressions in TS compiler (#6177) 2020-06-10 16:02:41 +02:00
upgrade.rs Fix failure message for deno upgrade (#6348) 2020-06-17 21:38:52 -04:00
version.rs
web_worker.rs
worker.rs

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core and deno_typescript to provide the executable.