Trying ES6 imports with Chrome but it doesn't seem to work

后端 未结 2 904
终归单人心
终归单人心 2021-01-17 10:07

I am contemplating moving from Dart to ES6 but Chrome doesn\'t seem to support the new import statement which is critical to me.

I used the (named export) code from

相关标签:
2条回答
  • 2021-01-17 10:40

    Safari Tech Review 19, via WebKit, now supports modules.

    https://twitter.com/Constellation/status/806660783312543744

    https://webkit.org/status/

    0 讨论(0)
  • 2021-01-17 10:52

    It works now, finally in Chrome 60 with the Experimental Web Platform features enabled.

    Here is a test:
    https://github.com/paulirish/es-modules-todomvc

    See here for status news:
    https://www.chromestatus.com/features/5365692190687232

    0 讨论(0)
提交回复
热议问题