Skip to content

Releases: Jay-WKJun/react-web-code-editor

V.1.1.1

08 May 13:58
c4c60c7
Compare
Choose a tag to compare

Summary

Three things are updated

  • Tree shake unused dependencies
    • postcss -> This project doesn't use postcss
    • other deprecated rollup plugins
  • Add Terser plugin
  • Move styled-components dependency, peer -> dependency

Details

styled-components

In case of 'react', It's 'react-web-code-editor' so every user notice that they have to have 'react' dependency to use this library.

but, styled-components is not, It's optional.

so, I decide to include styled-components dependency into this library.

Terser plugin

use terser plugin to minimize bundle size.

v.1.1.1 v.1.1.0
v 1 1 1 풀었을 떄 v 1 1 0 버전 풀어놓은 용량

v.1.1.0

07 May 13:27
c08a6d4
Compare
Choose a tag to compare

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
v 1 0 5 버전 풀어놓은 용량 v 1 1 0 버전 풀어놓은 용량

Same Feature

It has same features as before. It's all same.