Make a dual CommonJS/ES module package
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
.