Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): replace webpack with esbuild #40

Merged
merged 8 commits into from
Aug 9, 2021
Merged

Conversation

trivikr
Copy link
Contributor

@trivikr trivikr commented Aug 1, 2021

Issue

Fixes: #5

Description

Replaces webpack with esbuild in the backend.

Before
$ yarn build
asset updateNote/app.js 216 KiB [emitted] [minimized] (name: updateNote) 1 related asset
asset createNote/app.js 215 KiB [emitted] [minimized] (name: createNote)
asset deleteNote/app.js 215 KiB [emitted] [minimized] (name: deleteNote) 1 related asset
asset getNote/app.js 213 KiB [emitted] [minimized] (name: getNote) 1 related asset
asset listNotes/app.js 211 KiB [emitted] [minimized] (name: listNotes) 1 related asset
orphan modules 1.77 MiB [orphan] 274 modules
runtime modules 4.58 KiB 20 modules
built modules 6.98 MiB [built]
  cacheable modules 106 KiB
    javascript modules 76 KiB 18 modules
    json modules 30 KiB 4 modules
  modules by path ./src/ 6.87 MiB
    ./src/createNote.ts + 164 modules 1.38 MiB [not cacheable] [built] [code generated]
    ./src/deleteNote.ts + 164 modules 1.37 MiB [not cacheable] [built] [code generated]
    ./src/getNote.ts + 166 modules 1.39 MiB [not cacheable] [built] [code generated]
    ./src/listNotes.ts + 164 modules 1.36 MiB [not cacheable] [built] [code generated]
    ./src/updateNote.ts + 164 modules 1.37 MiB [not cacheable] [built] [code generated]
webpack 5.19.0 compiled successfully in 12709 ms
After
$ yarn build

  dist/updateNote/app.js  498.4kb
  dist/createNote/app.js  498.4kb
  dist/getNote/app.js     498.3kb
  dist/deleteNote/app.js  498.3kb
  dist/listNotes/app.js   498.2kb

⚡ Done in 102ms

Testing

Local testing.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr changed the title [WIP] feat(backend): replace webpack with esbuild feat(backend): replace webpack with esbuild Aug 9, 2021
@trivikr trivikr marked this pull request as ready for review August 9, 2021 05:30
@trivikr trivikr merged commit b261d82 into main Aug 9, 2021
@trivikr trivikr deleted the webpack-to-esbuild branch August 9, 2021 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use esbuild instead of webpack in notes app backend
1 participant