compat-table icon indicating copy to clipboard operation
compat-table copied to clipboard

Add Dynamic Import Tests

Open ghost opened this issue 7 years ago • 4 comments

https://tc39.github.io/proposal-dynamic-import/

import() is proposed to work in both scripts and modules. This gives script code an easy asynchronous entry point into the module world, allowing it to start running module code.

Prior to adding accepting a PR to add the tests a "Modules Tab" should be created as discussed in #316 and as exemplified in https://github.com/kangax/compat-table/pull/1051, which contains more information, additional resource links, and some example tests with review feedback.

ghost avatar Mar 19 '17 04:03 ghost

The dynamic import standard is in stage 3 It is now supported by chrome

AMorgaut avatar Mar 20 '19 09:03 AMorgaut

@AMorgaut dynamic imports are supported in all major browsers (except based on EdgeHTML Edge) https://caniuse.com/#feat=es6-module-dynamic-import

chicoxyzzy avatar Mar 20 '19 20:03 chicoxyzzy

@chicoxyzzy yes :-) I limited my mention to Chrome which shares v8 with node

few related resources:

  • https://techsparx.com/nodejs/esnext/dynamic-import.html
  • https://github.com/nodejs/node/issues/24894

AMorgaut avatar Mar 20 '19 22:03 AMorgaut

The OP describes what must be done to close this issue.

ljharb avatar Mar 20 '19 22:03 ljharb