1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
denoland-deno/cli/js
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
..
ops fix: DatagramConn.send should return bytes sent (#6265) 2020-06-13 10:14:31 -04:00
web fix(URL): IPv6 hostname support (#5766) 2020-06-10 14:05:10 -04:00
buffer.ts fix: Remove try-catch from Buffer.readFrom, readFromSync (#6161) 2020-06-10 11:54:54 -04:00
build.ts BREAKING: Use LLVM target triple for Deno.build (#4948) 2020-04-28 12:35:23 -04:00
colors.ts Provide better ANSI colorized output when inspecting objects (#5404) 2020-05-19 14:19:26 -04:00
compiler.ts Deno.bundle supports targets < ES2017 (#6346) 2020-06-18 09:06:48 -04:00
compiler_api.ts refactor: merge TS compiler into single file (#5091) 2020-05-06 00:19:18 +02:00
compiler_options.ts refactor: merge TS compiler into single file (#5091) 2020-05-06 00:19:18 +02:00
core.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
deno.ts Revert "feat: add Deno.osName()" (#6261) 2020-06-12 09:53:53 -04:00
deno_unstable.ts Fix Deno.dir and Diagnostics being present at stable runtime (#5750) 2020-05-23 09:37:12 -04:00
diagnostics.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
diagnostics_util.ts Improved typechecking error for unstable props (#5503) 2020-05-29 12:45:20 +02:00
error_stack.ts Revert "fix: Use # to denote line number in stack traces" (#6119) 2020-06-05 11:37:40 -04:00
errors.ts Make writeSync, readSync, seekSync, openSync, isatty proper synchronous syscalls (#4762) 2020-04-15 20:43:19 -04:00
files.ts feat: URL support in Deno filesystem methods (#5990) 2020-06-11 12:36:20 -04:00
globals.ts feat(core): Ops can take several zero copy buffers (#4788) 2020-06-01 14:20:47 -04:00
globals_unstable.ts Unstable methods should not appear in runtime or d.ts (#4957) 2020-04-30 11:23:40 -04:00
internals.ts BREAKING: Remove Deno.symbols namespace (#4936) 2020-04-28 01:06:03 +02:00
io.ts fix: bug in Deno.copy (#4977) 2020-04-28 21:30:48 -04:00
lib.deno.ns.d.ts feat: Add TestDefinition::only (#5793) 2020-06-12 11:58:04 -04:00
lib.deno.shared_globals.d.ts fix(cli/js/web/worker): Disable relative module specifiers (#5266) 2020-06-09 14:33:52 +02:00
lib.deno.unstable.d.ts fix: DatagramConn.send should return bytes sent (#6265) 2020-06-13 10:14:31 -04:00
lib.deno.window.d.ts feat(workers): "crypto" global accessible in Worker scope (#5121) 2020-05-08 14:30:53 +02:00
lib.deno.worker.d.ts BREAKING: remove window.location and self.location (#5034) 2020-05-01 20:15:28 +02:00
main.ts remove bootstrap methods from global scope after bootstrapping (#4869) 2020-04-25 01:03:45 +02:00
net.ts fix: DatagramConn.send should return bytes sent (#6265) 2020-06-13 10:14:31 -04:00
net_unstable.ts Unstable methods should not appear in runtime or d.ts (#4957) 2020-04-30 11:23:40 -04:00
permissions.ts refactor(cli/js/permissions): Split read and write permission descriptors (#4774) 2020-04-28 16:43:58 +02:00
process.ts fix(cli/js/process): Always return a code in ProcessStatus (#5244) 2020-06-10 11:10:08 -04:00
rbtree.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
read_file.ts feat: URL support in Deno filesystem methods (#5990) 2020-06-11 12:36:20 -04:00
read_text_file.ts feat: URL support in Deno filesystem methods (#5990) 2020-06-11 12:36:20 -04:00
repl.ts fix: Better use of @ts-expect-error (#6038) 2020-06-02 00:24:44 -04:00
runtime.ts BREAKING: Use LLVM target triple for Deno.build (#4948) 2020-04-28 12:35:23 -04:00
runtime_main.ts feat: Add Deno.mainModule (#6180) 2020-06-10 23:00:29 -04:00
runtime_worker.ts fix: Better use of @ts-expect-error (#6038) 2020-06-02 00:24:44 -04:00
signals.ts BREAKING: Use LLVM target triple for Deno.build (#4948) 2020-04-28 12:35:23 -04:00
testing.ts feat: Add TestDefinition::only (#5793) 2020-06-12 11:58:04 -04:00
tls.ts BREAKING CHANGE: rename TLS APIs to camel case (#4888) 2020-04-24 23:29:14 +02:00
ts_global.d.ts add option to lint and format only staged files (#5172) 2020-05-09 06:22:27 -04:00
util.ts fix: decode path properly on win32 (#6351) 2020-06-18 06:10:07 -04:00
version.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
write_file.ts feat: URL support in Deno filesystem methods (#5990) 2020-06-11 12:36:20 -04:00
write_text_file.ts feat: URL support in Deno filesystem methods (#5990) 2020-06-11 12:36:20 -04:00