diff --git a/package.json b/package.json
index 5e159e1..626a54c 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
"dependencies": {
"ractive": "^0.7.3",
"ractive-events-tap": "^0.2.0",
+ "ractive-transitions-slide": "^0.2.1",
"rollup": "^0.19.1"
}
}
diff --git a/src/app/Output/BundleOptions.html b/src/app/Output/BundleOptions.html
index b5ccb03..a1a38da 100644
--- a/src/app/Output/BundleOptions.html
+++ b/src/app/Output/BundleOptions.html
@@ -11,6 +11,20 @@
+{{#if options.format === 'iife' || options.format === 'umd'}}
+ {{#if exports.length}}
+
+
+
+ {{/if}}
+
+ {{#each imports}}
+
+
+
+ {{/each}}
+{{/if}}
+
diff --git a/src/app/Output/index.html b/src/app/Output/index.html
index 64e9c98..9b428c4 100644
--- a/src/app/Output/index.html
+++ b/src/app/Output/index.html
@@ -3,7 +3,7 @@
-
+
diff --git a/src/app/main.js b/src/app/main.js
index de6f19c..992d423 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -32,7 +32,7 @@ function update () {
entry: 'main',
resolveId ( importee, importer ) {
if ( !importer ) return importee;
- if ( importee[0] !== '.' ) return undefined;
+ if ( importee[0] !== '.' ) return false;
return resolve( dirname( importer ), importee ).replace( /^\.\//, '' );
},
@@ -49,10 +49,19 @@ function update () {
}).then( bundle => {
const generated = bundle.generate( options );
- output.set( 'code', generated.code );
- output.set( 'error', null );
+ output.set({
+ code: generated.code,
+ error: null,
+ imports: bundle.imports,
+ exports: bundle.exports
+ });
})
- .catch( error => output.set( 'error', error ) );
+ .catch( error => {
+ output.set( 'error', error );
+ setTimeout( () => {
+ throw error;
+ });
+ });
}
input.observe( 'modules', update );