From 5a145811719f83556a32b1324263e946a15c8e85 Mon Sep 17 00:00:00 2001 From: Leonardo Riether Date: Mon, 2 Sep 2019 23:22:40 -0300 Subject: [PATCH] Stop creating sourceMaps --- bundler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundler.js b/bundler.js index 8a2d9e4..9e0d08c 100644 --- a/bundler.js +++ b/bundler.js @@ -4,7 +4,7 @@ const { promisify } = require('util'); let fs = require('fs'); const package = require('./package.json'); -let DEV = false; // TODO: change to process.environment +let DEV = true; // TODO: change to process.environment fs.readFileAsync = promisify(fs.readFile); fs.writeFileAsync = promisify(fs.writeFile); @@ -29,6 +29,7 @@ let bundler = new Bundler(Path.join(__dirname, "./src/index.js"), { global: 'cfpp', contentHash: false, watch: DEV ? true : false, + sourceMaps: false, }); // TODO: Maybe there's a way to pipe Parcel's output to a JS function, then to the output?