1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-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 Unstable methods should not appear in runtime or d.ts (#4957) 2020-04-30 11:23:40 -04:00
Cargo.toml chore: remove glob dependency (#6317) 2020-06-16 17:29:43 -04:00
checksum.rs fix: source maps in inspector (#5223) 2020-05-11 23:48:36 +02:00
colors.rs Add diff for "deno fmt --check" (#5599) 2020-06-06 09:07:59 -04:00
deno_dir.rs fix: create HTTP cache lazily (#5795) 2020-05-24 19:20:40 +02:00
diagnostics.rs fix some unwrap() in Rust (#5485) 2020-05-16 09:41:32 -04:00
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 refactor: move code from fs.rs into ops/fs.rs (#4428) 2020-03-20 09:46:26 -04:00
global_state.rs fix(compiler): JSX compilation and provide better error message (#6300) 2020-06-15 17:53:05 +02:00
global_timer.rs clippy (#4618) 2020-04-03 22:41:16 -04:00
http_cache.rs fix: create HTTP cache lazily (#5795) 2020-05-24 19:20:40 +02:00
http_util.rs Add support for X-Deno-Warning header (#5161) 2020-05-09 12:43:24 -04:00
import_map.rs update references to testing/mod.ts in manual (#3973) 2020-02-11 21:50:20 +01:00
inspector.rs refactor: Split isolate and state using safe get_slot() (#5929) 2020-05-29 17:41:39 -04:00
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 BREAKING: Remove support for .wasm imports (#5135) 2020-05-07 20:43:27 +02:00
lint.rs feat(lint): add --rules flag (#6264) 2020-06-12 16:42:12 +02:00
lockfile.rs fix: source maps in inspector (#5223) 2020-05-11 23:48:36 +02:00
main.rs feat(lint): add --rules flag (#6264) 2020-06-12 16:42:12 +02:00
metrics.rs feat: update metrics to track different op types (#4221) 2020-03-02 19:13:36 +01:00
module_graph.rs fix: several regressions in TS compiler (#6177) 2020-06-10 16:02:41 +02:00
msg.rs refactor: rewrite TS dependency analysis in Rust (#5029) 2020-05-18 12:59:29 +02:00
op_error.rs Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls (#4762) 2020-04-15 20:43:19 -04:00
permissions.rs Move to allowlist and blocklist (#6282) 2020-06-13 13:09:39 -04:00
README.md update readmes (#3765) 2020-01-23 22:32:52 +01:00
repl.rs Remove REPL/Windows hack (#5136) 2020-05-07 12:01:27 -04:00
resolve_addr.rs remove calls to futures::executor::block_on (#4760) 2020-04-15 23:14:28 -04:00
signal.rs Implement Deno.kill for windows (#5347) 2020-05-17 19:11:24 +02:00
source_maps.rs Remove unused check-only feature (#6035) 2020-06-02 14:56:21 -04:00
startup_data.rs Remove unused check-only feature (#6035) 2020-06-02 14:56:21 -04:00
state.rs feat(core): Ops can take several zero copy buffers (#4788) 2020-06-01 14:20:47 -04:00
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 BREAKING: There is no public Rust API for the CLI (#5226) 2020-05-11 17:33:36 -04:00
tokio_util.rs workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
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 Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
web_worker.rs refactor: Split isolate and state using safe get_slot() (#5929) 2020-05-29 17:41:39 -04:00
worker.rs Move create_main_worker to MainWorker::create (#6034) 2020-06-01 22:44:17 -04:00

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.