{"library":"rollup-plugin-file","title":"rollup-plugin-file","description":"Rollup plugin that allows a file object (e.g., from Gulp) to be used as an entry point, supporting vinyl files with a `base` property. Current version 0.1.1 is an early release with no tests, no updates since 2017, and no maintenance. Differentiates from standard Rollup entry by accepting file objects rather than file paths, primarily for integration with Gulp streams. Likely abandoned; caution advised for production use.","language":"javascript","status":"abandoned","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-file"],"cli":null},"imports":["import rollupFile from 'rollup-plugin-file'","import rollupFile from 'rollup-plugin-file'","import rollupFile from 'rollup-plugin-file';\n// then use in plugins: [rollupFile()]"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport rollupFile from 'rollup-plugin-file';\nimport gulp from 'gulp';\nimport through from 'through2';\n\ngulp.task('build', function() {\n  return gulp.src('./src/*.js')\n    .pipe(through.obj(function(file, enc, done) {\n      rollup({\n        entry: file,\n        plugins: [rollupFile()]\n      }).then(bundle => {\n        file.contents = Buffer.from(bundle.generate({format: 'iie'}).code);\n        done(null, file);\n      }).catch(done);\n    }))\n    .pipe(gulp.dest('./dist'));\n});","lang":"javascript","description":"Shows basic usage with Gulp: takes a vinyl file stream and bundles each file using Rollup with the file plugin.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}