mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
14 changed files with 62 additions and 8 deletions
@ -1,7 +1,7 @@ |
|||
'use strict'; |
|||
|
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
console.log( 'not indented' ); |
|||
} |
|||
|
|||
module.exports = foo; |
|||
|
@ -1,5 +1,5 @@ |
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
console.log( 'not indented' ); |
|||
} |
|||
|
|||
export default foo; |
|||
|
@ -1,3 +1,3 @@ |
|||
export default function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
console.log( 'not indented' ); |
|||
} |
|||
|
@ -0,0 +1,7 @@ |
|||
module.exports = { |
|||
description: 'auto-indents with indent: true', |
|||
options: { |
|||
moduleName: 'foo', |
|||
indent: ' ' |
|||
} |
|||
}; |
@ -0,0 +1,9 @@ |
|||
define(function () { 'use strict'; |
|||
|
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
} |
|||
|
|||
return foo; |
|||
|
|||
}); |
@ -0,0 +1,7 @@ |
|||
'use strict'; |
|||
|
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
} |
|||
|
|||
module.exports = foo; |
@ -0,0 +1,5 @@ |
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
} |
|||
|
|||
export default foo; |
@ -0,0 +1,10 @@ |
|||
var foo = (function () { |
|||
'use strict'; |
|||
|
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
} |
|||
|
|||
return foo; |
|||
|
|||
}()); |
@ -0,0 +1,13 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
(global.foo = factory()); |
|||
}(this, (function () { 'use strict'; |
|||
|
|||
function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
} |
|||
|
|||
return foo; |
|||
|
|||
}))); |
@ -0,0 +1,3 @@ |
|||
export default function foo () { |
|||
console.log( 'indented with tabs' ); |
|||
} |
Loading…
Reference in new issue