Socket
Book a DemoInstallSign in
Socket

rollup-stream-gulp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-stream-gulp

Gulp plugin for Rollup

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

rollup-stream-gulp

A gulp plugin, and hopefully with enough work, love and consensus becomes @rollup/gulp

Installation

yarn add -D rollup-stream-gulp

Purpose

Currently the recommended way is to use @rollup/stream. This works well, but has a few limitations.

  • requires \vinyl-source-stream``
  • only allows outputing one file per stream instance
    • options.manualChunks not supported
  • DX is non-optimal

Usage

Basic

// gulpfile.ts
import gulp from "gulp";
import rollup from "rollup-stream-gulp";
// import rollup from "@rollup/gulp";

export const build = async () =>
  gulp.src("src/index.ts").pipe(rollup({})).pipe(gulp.dest("dist"));

Troubleshooting, Validation and Errors

There are a few caveats.

Internally we use options.input = file.path, which means we may not get errors about file conflicts. We'll be looking to address these later on.

Keywords

gulpplugin

FAQs

Package last updated on 09 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts