Skip to content

esmock is 50% smaller! 16.6kB (from 31.8kB)

Compare
Choose a tag to compare
@iambumblehead iambumblehead released this 22 Jul 06:16
9b79c6e

esmock is 50% smaller and minified sources are verified by the CI pipeline. Unit-tests are moved to a sub-directory to prepare for testing situations using specific runner and loader combinations, for example ava + ts-node/esm

get the latest version with npm install -D esmock@latest

The size of esmock was reduced from 31.8kB to 16.6kB with the following changes,

  • (6.3kB), minified resolvewithplus, 72
  • (1.4kB), moved test details to tests/ directory, 74
  • (0.5kB), changed license from MIT to ISC, 75
  • (5.5kB), minified src files with esbuild, 76