Skip to content

Commit

Permalink
Add support for external dependencies when bundling with rollup.
Browse files Browse the repository at this point in the history
  • Loading branch information
krausvo1 committed Feb 27, 2024
1 parent a903502 commit 38d1380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/build/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export function useBuildRequire(options = {}) {
* @property {string} dest - target module file path
* @property {boolean} [minify] - minify output
* @property {boolean} [transpile] - transpile output
* @property {import("rollup").ExternalOption} [external] - external dependencies
* @property {import("@rollup/plugin-alias").RollupAliasOptions} [alias] - alias options
*/

Expand Down Expand Up @@ -234,6 +235,7 @@ export function useBuildModule(options) {
}
const bundle = await rollup({
input: options.src,
external: options.external,
plugins
});
await bundle.write({
Expand Down

0 comments on commit 38d1380

Please sign in to comment.