JSPM

@roots/bud-library

4.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 236
  • Score
    100M100P100Q99217F
  • License MIT

Adds dynamic link library support to Bud

Package Exports

  • @roots/bud-library

Readme

Bud

MIT License Follow Roots

@roots/bud-library

Adds dynamic link library support to Bud

Overview

Adds DLL caching support to @roots/bud projects. This can significantly improve build times for vendored dependencies which do not frequently change.

toc

Summary

app.library differs from app.vendor in that it doesn't just separate the vendored code from the application code, but actually stops the vendored assets from needing to be rebuilt at all.

The first build will likely take longer as the DLL will need to be compiled, but subsequent builds should see a noticeable reduction in build time.

Installation

yarn add @roots/bud-library --dev

Usage

module.exports = (app) =>
  app.use("@roots/bud-library").library(["react", "react-dom", "react-forms"]);

Pass app.library the module you would like to add to the DLL cache:

app.library("jquery");

Multiple modules can be added using an array:

app.library(["jquery", "bootstrap"]);

Contributing

Contributions are welcome from everyone.

We have contributing guidelines to help you get started.

Bud sponsors

Help support our open-source development efforts by becoming a patron.

Kinsta KM Digital Carrot C21 Redwood Realty WordPress.com Icons8 Harness Software Coders Clan Genero Motto

Community

Keep track of development and community news.