Browse Source

failing test for #743

semi-dynamic-namespace-imports
Rich-Harris 9 years ago
parent
commit
ec5b11f76b
  1. 7
      test/cli/external-modules-auto-global/_config.js
  2. 3
      test/cli/external-modules-auto-global/main.js

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

3
test/cli/external-modules-auto-global/main.js

@ -0,0 +1,3 @@
import { max } from 'mathematics';
assert.equal( max( 1, 2, 3 ), 3 );
Loading…
Cancel
Save