mirror of https://github.com/lukechilds/rollup.git
Mike Bostock
8 years ago
9 changed files with 45 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'does not include called-in-unused-code import' |
|||
}; |
@ -0,0 +1,7 @@ |
|||
define(function () { 'use strict'; |
|||
|
|||
var foo = function() { return 'foo'; } |
|||
|
|||
assert.equal( foo(), 'foo' ); |
|||
|
|||
}); |
@ -0,0 +1,5 @@ |
|||
'use strict'; |
|||
|
|||
var foo = function() { return 'foo'; } |
|||
|
|||
assert.equal( foo(), 'foo' ); |
@ -0,0 +1,3 @@ |
|||
var foo = function() { return 'foo'; } |
|||
|
|||
assert.equal( foo(), 'foo' ); |
@ -0,0 +1,8 @@ |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
var foo = function() { return 'foo'; } |
|||
|
|||
assert.equal( foo(), 'foo' ); |
|||
|
|||
}()); |
@ -0,0 +1,11 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
(factory()); |
|||
}(this, (function () { 'use strict'; |
|||
|
|||
var foo = function() { return 'foo'; } |
|||
|
|||
assert.equal( foo(), 'foo' ); |
|||
|
|||
}))); |
@ -0,0 +1 @@ |
|||
export default function() { return 'dead'; } |
@ -0,0 +1,5 @@ |
|||
import dead from './dead'; |
|||
|
|||
export default function() { return 'foo'; } |
|||
|
|||
export function foodead() { return 'foo' + dead(); } |
@ -0,0 +1,2 @@ |
|||
import foo from './foo'; |
|||
assert.equal( foo(), 'foo' ); |
Loading…
Reference in new issue