Skip to content

Releases: cabify/package-build-javascript

v0.2.1-beta.0

15 Dec 10:28

Choose a tag to compare

v0.2.1-beta.0 Pre-release
Pre-release

Release Notes - v0.2.1-beta.0

🚀 New Features

Tree Shaking Support (--preserve-modules)

New CLI flag that enables Rollup's preserveModules mode, generating individual files instead of a single monolithic bundle.

package-build -m
package-build --preserve-modules

Benefits:

  • Enables effective tree-shaking for consumers
  • Reduces bundle size significantly for libraries with many exports (e.g., icon libraries)
  • Preserves source directory structure in output

Output structure:

dist/          # CJS modules
es2015/        # ESM modules

📦 Recommended Configuration

For tree-shakable libraries, add to your package.json:

{
  "sideEffects": false,
  "exports": {
    ".": {
      "import": "./es2015/index.js",
      "require": "./dist/index.js"
    }
  }
}

v0.1.2-beta.1

04 Dec 12:02
1d04dae

Choose a tag to compare

v0.1.2-beta.1 Pre-release
Pre-release
0.1.2-beta.1

0.1.2-beta.0

27 Mar 09:58

Choose a tag to compare

0.1.2-beta.0 Pre-release
Pre-release

Changed

  • Use typescript 5.

0.1.1

06 Feb 12:38
07208ab

Choose a tag to compare

Fixed

  • Rollup regression.

0.1.0

27 Oct 07:11

Choose a tag to compare

Added

  • Allow defining typescript project with -p parameter to define a different tsconfig.ts file. p.eg: package-build -p tsconfig.build.json. This is useful to have a tsconfig.json in the root to allow IDE and library implementation to get a project file including files even if they won't be included in the NPM package (.spec, .test, .stories). Otherwise, a project including these files will transform every file defined, even those not desired in the final bundle, not only forcing to exclude them explicitly but increasing compilation times and errors. By default tsconfig.json will be used as it usually does.

0.0.3-beta.2

27 Oct 06:52

Choose a tag to compare

0.0.3-beta.2 Pre-release
Pre-release
v0.0.3-beta.2

0.0.3-beta.2

v0.0.3-beta.0

02 Sep 11:39
349bbec

Choose a tag to compare

v0.0.3-beta.0 Pre-release
Pre-release

Fixed

  • Type definition generation errors now stop the package compilation process.