From 0de6251ea2c50c15b6f5c768bd3ede92f240f779 Mon Sep 17 00:00:00 2001 From: Resi Respati Date: Thu, 23 Nov 2017 01:33:53 +0700 Subject: [PATCH] [rollup] code style fixes --- rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index fb7b302..9c1a32f 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -7,7 +7,7 @@ import commonjs from "rollup-plugin-commonjs"; import screepsUpload from "rollup-plugin-screeps-upload"; import typescript from "rollup-plugin-typescript2"; -const getSourcemapFilename = () => 'main.js.map.js' +const getSourcemapFilename = () => "main.js.map.js"; // In Screeps, require only works for exported content // This "plugin" prepends an export to source maps so that it can be loaded in screeps via require` @@ -27,7 +27,7 @@ function exportSourceMaps(options) { const map = bundle.map fs.writeFileSync(path.resolve(__dirname, `./dist/${options || getSourcemapFilename()}`), map); // Delete the old file - fs.unlinkSync(path.resolve(__dirname, `./dist/main.js.map`)); + fs.unlinkSync(path.resolve(__dirname, "./dist/main.js.map")); } } }