/dist/color-thief.umd.js: UMD module. For simple script tag loading that exposes a global variable or for RequireJS AMD support.
/dist/color-thief.js: CommonJS module. Entry point for Node.js and Browserify. (Note: The script does not run in a Node env, though this is next on the roadmap. For now, you can evaluate this fork )
/dist/color-thief.mjs: ES6 module. For modern browsers as well as Webpack and Rollup.
/dist/color-thief.min.js: Duplicate of /dist/color-thief.umd.js. Kept around to maintain backwards compatibility.
New files in the
/dist
folder/dist/color-thief.umd.js
: UMD module. For simple script tag loading that exposes a global variable or for RequireJS AMD support./dist/color-thief.js
: CommonJS module. Entry point for Node.js and Browserify. (Note: The script does not run in a Node env, though this is next on the roadmap. For now, you can evaluate this fork )/dist/color-thief.mjs
: ES6 module. For modern browsers as well as Webpack and Rollup./dist/color-thief.min.js
: Duplicate of/dist/color-thief.umd.js
. Kept around to maintain backwards compatibility.Additional changes
uglify
withmicrobundle
for build stepcc: @huw30 👋