"Can I use" appears to have what you're looking for:
(“我可以使用”似乎具有您要查找的内容:)
https://caniuse.com/#feat=mdn-javascript_statements_import
(https://caniuse.com/#feat=mdn-javascript_statements_import)
Compatibility for desktop browsers:
(桌面浏览器的兼容性:)
For mobile browsers the info is a bit more limited, but the dates are likely in the same ballpark.
(对于移动浏览器,信息受到更多限制,但日期可能在同一范围内。)
Should you use ES6 imports in user code today?
(您今天应该在用户代码中使用ES6导入吗?)
Probably not if your application is intended to be used by a general audience, unless you're targeting a specific runtime that is known to support it.(如果您的应用程序旨在供一般读者使用,则可能不会,除非您针对的是已知支持该应用程序的特定运行时。)
Give it a couple more years.(再给它几年。)
What's commonly done instead is to use a bundler such as Webpack or FuseBox (I've personally had a great experience with the latter).
(相反,通常要做的是使用捆绑器,例如Webpack或FuseBox (我个人对后者有很好的经验)。)
This way you can use the import syntax in your codebase, while the end user gets a single combined .js file which handles module imports/exports in a more compatible way.(这样,您可以在代码库中使用导入语法,而最终用户将获得一个组合的.js文件,该文件以更兼容的方式处理模块的导入/导出。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…