From ec5b11f76b019ebf7418c78ffdb7f0d41ea13d61 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Wed, 22 Jun 2016 20:42:12 -0400 Subject: [PATCH] failing test for #743 --- test/cli/external-modules-auto-global/_config.js | 7 +++++++ test/cli/external-modules-auto-global/main.js | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 test/cli/external-modules-auto-global/_config.js create mode 100644 test/cli/external-modules-auto-global/main.js diff --git a/test/cli/external-modules-auto-global/_config.js b/test/cli/external-modules-auto-global/_config.js new file mode 100644 index 0000000..7dbf418 --- /dev/null +++ b/test/cli/external-modules-auto-global/_config.js @@ -0,0 +1,7 @@ +const assert = require( 'assert' ); + +module.exports = { + description: 'populates options.external with --global keys', + command: 'rollup main.js --format iife --globals mathematics:Math', + execute: true +}; diff --git a/test/cli/external-modules-auto-global/main.js b/test/cli/external-modules-auto-global/main.js new file mode 100644 index 0000000..dcd8569 --- /dev/null +++ b/test/cli/external-modules-auto-global/main.js @@ -0,0 +1,3 @@ +import { max } from 'mathematics'; + +assert.equal( max( 1, 2, 3 ), 3 );