mirror of https://github.com/lukechilds/rollup.git
Browse Source
allow --globals to work with --external and options.external in whatever configurationsemi-dynamic-namespace-imports
Rich Harris
9 years ago
committed by
GitHub
3 changed files with 24 additions and 11 deletions
@ -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 |
||||
|
}; |
@ -0,0 +1,3 @@ |
|||||
|
import { max } from 'mathematics'; |
||||
|
|
||||
|
assert.equal( max( 1, 2, 3 ), 3 ); |
Loading…
Reference in new issue