We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example in the readme
import rollupStream from '@rollup/stream'; import gulp from 'gulp'; import terser from 'gulp-terser'; import source from 'vinyl-source-stream'; gulp.task('rollup', () => { const options = { input: 'src/index.js' }; return rollupStream(options) .pipe(source('bundle.js')) .pipe(terser({ keep_fnames: true, mangle: false })) .pipe(gulp.dest('dist')); });
Causes an error Error: You must supply an options object.
Error: You must supply an options object
I fixed it by setting the output
import rollupStream from '@rollup/stream'; import gulp from 'gulp'; import terser from 'gulp-terser'; import source from 'vinyl-source-stream'; gulp.task('rollup', () => { const options = { input: 'src/index.js', output: { format: 'cjs' } }; return rollupStream(options) .pipe(source('bundle.js')) .pipe(terser({ keep_fnames: true, mangle: false })) .pipe(gulp.dest('dist')); });
The text was updated successfully, but these errors were encountered:
This isn't a very frequently maintained package. We'd be happy to review a PR from the community to resolve the issue.
Sorry, something went wrong.
No branches or pull requests
The example in the readme
Causes an error
Error: You must supply an options object
.I fixed it by setting the output
The text was updated successfully, but these errors were encountered: