mirror of https://github.com/lukechilds/rollup.git
6 changed files with 52 additions and 1 deletions
@ -0,0 +1,4 @@ |
|||||
|
module.exports = { |
||||
|
description: 'block comments are printed correctly', |
||||
|
skip: true // work on this later
|
||||
|
}; |
@ -0,0 +1,13 @@ |
|||||
|
export default function foo () { |
||||
|
return embiggen( 6, 7 ); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* Embiggens a number |
||||
|
* @param {number} num - the number to embiggen |
||||
|
* @param {number} factor - the factor to embiggen it by |
||||
|
* @returns {number} |
||||
|
*/ |
||||
|
function embiggen ( num, factor ) { |
||||
|
return num * factor; |
||||
|
} |
@ -0,0 +1,3 @@ |
|||||
|
import foo from './foo'; |
||||
|
|
||||
|
alert( foo() ); |
@ -0,0 +1,8 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'does not wrongly append comments', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports, 42 ); |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
(function () { |
||||
|
console.log( '1' ) // not an ID. should fix!
|
||||
|
|
||||
|
/* |
||||
|
BLOCK COMMENT |
||||
|
*/ |
||||
|
|
||||
|
console.log( '2' ); |
||||
|
|
||||
|
// standalone comment
|
||||
|
})(); |
||||
|
|
||||
|
export default 42; |
Loading…
Reference in new issue