Announcing a new --experimental-modules

Photo by Brett Sayles from Pexels

What’s in --experimental-modules

import and export syntax in .js files

package.json “type” field

--input-type flag

.cjs extension

Explicit filenames

module.createRequireFromPath

import for JavaScript only

ES module code in packages

Works in progress

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store