esbuild-loader 로 webpack 번들링 성능을 개선합니다. #81
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔍 What is this PR?
관련 이슈: #70
webpack 의 번들링 성능을 개선하기 위해
esbuild-loader
를 적용합니다.📝 Changes
babel-loader
와ts-loader
대신에esbuild-loader
를 사용합니다.📸 Screenshots
webpack compile estimated
적용 후 webpack compile 시간을 비교한 결과입니다.
1️⃣ dev server cold start time
AS-IS : 2427ms, 2302ms, 2298ms
TO-BE : 371ms, 424ms, 387ms
약 7배 ⬆️
2️⃣ dev server hot module replacement
AS-IS : 182ms, 186ms, 196ms
TO-BE: 74ms, 55ms, 65ms
약 3배 ⬆️
3️⃣ production build
AS-IS : 3058ms, 2551ms, 2613ms
TO-BE : 735ms, 687ms, 713ms
약 4배 ⬆️
4️⃣ CI build
AS-IS: 8s
TO-BE: 4s
약 2배 ⬆️
css minimize