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