From 0e94b7351d17109c93dbb16feb1d4cbde126ef63 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 18 Sep 2016 09:28:09 -0400 Subject: [PATCH] control Rollup version via URL --- src/app/main.js | 2 +- src/files/index.html | 30 ++++++++++++++++++++++++++---- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/app/main.js b/src/app/main.js index c10f04c..09f2405 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -119,7 +119,7 @@ if ( supported ) { }); // save state as hash fragment - history.replaceState( {}, 'x', `/?shareable=${btoa( encodeURIComponent( JSON.stringify({ options, modules }) ) )}` ); + history.replaceState( {}, 'x', `/?version=${rollup.VERSION}&shareable=${btoa( encodeURIComponent( JSON.stringify({ options, modules }) ) )}` ); }) .catch( error => { output.set( 'error', error ); diff --git a/src/files/index.html b/src/files/index.html index 88bab33..2bce3a2 100644 --- a/src/files/index.html +++ b/src/files/index.html @@ -53,6 +53,32 @@ + + + @@ -60,10 +86,6 @@ - - - -