Skip to content

Make a dual CommonJS/ES module package

Compare
Choose a tag to compare
@Amphiluke Amphiluke released this 17 Apr 16:57
· 14 commits to master since this release

The package is turned into a dual CommonJS/ES module. Now it can be imported either as a pure ES module (e.g. import {compileRoots} from "less-compile-roots") or as a CommonJS module (e.g. let {compileRoots} = require("less-compile-roots")).

Breaking changes

  • The minimum supported version of the Node.js engine is now 10.0.0.
  • If you’re referring to the main package file directly rather than using a bare specifier, note that the file extension has changed to .cjs.