diff options
author | Myles Borins <mylesborins@google.com> | 2018-01-25 14:32:43 -0800 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-01-31 16:05:23 -0800 |
commit | ba3d55a3b88cfdc9755b492912616ddd1931c4a3 (patch) | |
tree | a86899aa718a5f9513fe83a2b98b8874ebb332fb /doc | |
parent | 6bcd31f2f4a518f70646a72e7a6e42aa6ca90469 (diff) | |
download | android-node-v8-ba3d55a3b88cfdc9755b492912616ddd1931c4a3.tar.gz android-node-v8-ba3d55a3b88cfdc9755b492912616ddd1931c4a3.tar.bz2 android-node-v8-ba3d55a3b88cfdc9755b492912616ddd1931c4a3.zip |
module: enable dynamic import flag for esmodules
currently if you want to use dynamic import you must use both the
`--experimental-modules` and the `--harmony-dynamic-imports` flags.
Chrome is currently shipping dynamic import unflagged, the flag
only remains in V8 to guard embedders who have not set the appropriate
callback from throwing an unhandled rejection when the feature is used.
As such it is reasonable to enable the flag by default for
`--experimental-modules`
PR-URL: https://github.com/nodejs/node/pull/18387
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/esm.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md index e9b38735be..2a37040798 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -33,8 +33,8 @@ node --experimental-modules my-app.mjs ### Supported Only the CLI argument for the main entry point to the program can be an entry -point into an ESM graph. Dynamic import can also be used with the flag -`--harmony-dynamic-import` to create entry points into ESM graphs at runtime. +point into an ESM graph. Dynamic import can also be used to create entry points +into ESM graphs at runtime. ### Unsupported |