From b44670d0bd62ddca05922cdf2b360a8e5a6d679f Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Mon, 14 Jan 2019 21:05:29 -0800 Subject: [PATCH] Remove unused code --- plugins/entryManifest.js | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/plugins/entryManifest.js b/plugins/entryManifest.js index fb5ee7d..4facf49 100644 --- a/plugins/entryManifest.js +++ b/plugins/entryManifest.js @@ -54,8 +54,8 @@ function entryManifest() { }, /** - * A Rollup plugin that provides the entry manifest to another bundle - * via a virtual module id. + * A Rollup plugin that provides the current entry manifest via a + * virtual module id. */ inject(options = {}) { const virtualId = options.virtualId || 'entry-manifest'; @@ -81,31 +81,6 @@ function entryManifest() { return null; } }; - }, - - /** - * A Rollup plugin that writes the entry manifest to the filesystem. - */ - write(options = {}) { - const outputFile = options.outputFile || 'entry-manifest.json'; - - return { - name: 'entry-manifest-write', - buildStart() { - this.addWatchFile(watchfile); - }, - generateBundle(options, bundle, isWrite) { - if (manifest == null) { - throw new Error( - 'Manifest has not been recorded; use manifest.record() in your client bundle' - ); - } - - if (isWrite) { - writeFile(outputFile, JSON.stringify(manifest, null, 2) + '\n'); - } - } - }; } }; }