v.1.1.0
Summary
These days, almost browsers are now support ESM system, so we can take advantage of ESM system.
so, i choose to support addtional ESM bundle, so that my library user's can take advantage of ESM system without any change of features.
and i choose to Rollup.js bundler to support it.
Webpack does support ESM library bundle but it's experiment version now.
ref: https://webpack.kr/configuration/output/#type-module
Improvement
ESM module
additional ESM module can use.
/* package.json */
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"exports": {
"import": "./dist/es/index.js",
"require": "./dist/cjs/index.js"
}
Lighter
besides of additional ESM bundle, library isn't go heavier than previous one.
It's lighter than the previous one.
v.1.0.5 | v.1.1.0 |
---|---|
![]() |
![]() |
Same Feature
It has same features as before. It's all same.