Skip to content

Commit

Permalink
Remove rollup cache so live reload works again
Browse files Browse the repository at this point in the history
(closes #5089)
  • Loading branch information
bhousel committed Jun 18, 2018
1 parent 7de54a3 commit 661c133
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build_src.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const json = require('rollup-plugin-json');
const colors = require('colors/safe');

module.exports = function buildSrc() {
var cache;
var building = false;
return function () {
if (building) return;
Expand All @@ -33,11 +32,9 @@ module.exports = function buildSrc() {
}),
commonjs(),
json( { indent: '' })
],
cache: cache
]
})
.then(function (bundle) {
cache = bundle;
return bundle.write({
format: 'iife',
file: 'dist/iD.js',
Expand All @@ -51,7 +48,6 @@ module.exports = function buildSrc() {
})
.catch(function (err) {
building = false;
cache = undefined;
console.error(err);
process.exit(1);
});
Expand Down

0 comments on commit 661c133

Please sign in to comment.