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 );