From fe3a340f1caea5af7af46d058b112ae1b555d649 Mon Sep 17 00:00:00 2001 From: Per Liedman Date: Tue, 15 Aug 2017 11:39:53 +0200 Subject: [PATCH] Remove warning alert in watch bundle (#5714) --- build/rollup-watch-config.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/build/rollup-watch-config.js b/build/rollup-watch-config.js index 5f99ea41..d9965324 100644 --- a/build/rollup-watch-config.js +++ b/build/rollup-watch-config.js @@ -12,18 +12,9 @@ const rev = gitRev.short(); const version = require('../package.json').version + '+' + branch + '.' + rev; -const now = (new Date()).getTime(); -const limit = now + 5 * 60 * 1000; // 5 minutes, in milliseconds - -const warningCode = ` -if ((new Date()).getTime() > ` + limit + `) { - var msg = "This rollupjs bundle is potentially old. Make sure you're running 'npm run-script watch' or 'yarn run watch'."; - alert(msg); - // throw new Error(msg); -} - +const banner = ` /* - * Leaflet ` + version + `, a JS library for interactive maps. http://leafletjs.com + * Leaflet ${version}, a JS library for interactive maps. http://leafletjs.com * (c) 2010-2016 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ @@ -32,7 +23,7 @@ if ((new Date()).getTime() > ` + limit + `) { export default { format: 'umd', moduleName: 'L', - banner: warningCode, + banner, entry: 'src/Leaflet.js', dest: 'dist/leaflet-src.js', plugins: [