import {x} from ./foo.js
ES6 Modules in Chrome M61+
Sam Thorogood

Usually I write import {x} from "./foo” , without the .js in foo.js . I tested it Chrome Canary and it does not work (404), only with the .js it works like expected. Is this going to change in the future?

Like what you read? Give Riccardo Scalco a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.