Chrome 61: JavaScript Modules, WebUSB, WebShare and more




Chrome 61 now supports JavaScript modules natively, unifying the way modular JavaScript can be written. You can now use navigator dot share to trigger the native Android share dialog. And the WebUSB API has landed, allowing web apps to access user permitted USB devices.

Pete LePage has all the details and how you can use these new developer features in Chrome 61!

Chrome 61 Beta blog post: https://goo.gl/1mpPoF

Modules
https://goo.gl/XO5nLF
https://goo.gl/TvdUmD
https://goo.gl/8GnbJu

Web Share
https://goo.gl/bHfO86

WebUSB
https://goo.gl/Tb5zfq
https://goo.gl/1ULm2v

You can learn more about origin trials at https://goo.gl/6FP1a5

Subscribe to the Google Developers channel at https://goo.gl/WkxCU5

Original source


26 responses to “Chrome 61: JavaScript Modules, WebUSB, WebShare and more”

  1. We need to have some attachment with this Web Share API. that would be really helpful when we are sharing through the native apps (SMS, Whatsapp, Gmail with Attachment) with rich media content. We han have something like

    navigator.share({
    title: document.title,
    text: "Hello World",
    url: window.location.href,
    attachment: ["www.my.web/attachment/url.jpg","www.my.web/attachment/url.mp4"]
    }).then(() => console.log('Successful share'))
    .catch(error => console.log('Error sharing:', error));

  2. When all browsers support native modules, is webpack then obsolete, I just learned it, and now it seems like it's not going to be used anymore soon? What are the benefits of using webpack over native modules?

Leave a Reply