mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
7 changed files with 39 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'omits assignments to objects owned by unused identifiers' |
|||
}; |
@ -0,0 +1,6 @@ |
|||
define(function () { 'use strict'; |
|||
|
|||
console.log( 'before' ); |
|||
console.log( 'after' ); |
|||
|
|||
}); |
@ -0,0 +1,4 @@ |
|||
'use strict'; |
|||
|
|||
console.log( 'before' ); |
|||
console.log( 'after' ); |
@ -0,0 +1,2 @@ |
|||
console.log( 'before' ); |
|||
console.log( 'after' ); |
@ -0,0 +1,7 @@ |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
console.log( 'before' ); |
|||
console.log( 'after' ); |
|||
|
|||
}()); |
@ -0,0 +1,10 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
(factory()); |
|||
}(this, (function () { 'use strict'; |
|||
|
|||
console.log( 'before' ); |
|||
console.log( 'after' ); |
|||
|
|||
}))); |
@ -0,0 +1,7 @@ |
|||
console.log( 'before' ); |
|||
function Unused () {} |
|||
|
|||
Unused.prototype.toString = function () { |
|||
return 'unused'; |
|||
}; |
|||
console.log( 'after' ); |
Loading…
Reference in new issue