mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
9 changed files with 20 additions and 5 deletions
@ -1,5 +1,5 @@ |
|||
var foo = function () { |
|||
return 42; |
|||
} |
|||
}; |
|||
|
|||
console.log( foo() ); |
|||
|
@ -0,0 +1,3 @@ |
|||
module.exports = { |
|||
description: 'adds semi-colons if necessary' |
|||
}; |
@ -0,0 +1,3 @@ |
|||
export default function () { |
|||
return 42; |
|||
} |
@ -0,0 +1,7 @@ |
|||
import foo from './foo.js'; |
|||
|
|||
(function bar() { |
|||
assert.ok( true ); |
|||
})(); |
|||
|
|||
assert.equal( foo(), 42 ); |
Loading…
Reference in new issue