mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
54 changed files with 163 additions and 110 deletions
@ -1,9 +1,10 @@ |
|||||
// banner
|
// banner
|
||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
// intro
|
// intro
|
||||
console.log( 42 ); |
console.log( 42 ); |
||||
// outro
|
// outro
|
||||
|
|
||||
})(); |
}()); |
||||
// footer
|
// footer
|
||||
|
@ -1,9 +1,10 @@ |
|||||
/* first banner */ |
/* first banner */ |
||||
/* second banner */ |
/* second banner */ |
||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
console.log( 1 + 1 ); |
console.log( 1 + 1 ); |
||||
|
|
||||
})(); |
}()); |
||||
/* first footer */ |
/* first footer */ |
||||
/* second footer */ |
/* second footer */ |
||||
|
@ -1,7 +1,8 @@ |
|||||
/* this is a banner */ |
/* this is a banner */ |
||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
console.log( 'hello world' ); |
console.log( 'hello world' ); |
||||
|
|
||||
})(); |
}()); |
||||
/* this is a footer */ |
/* this is a footer */ |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var bar = 1; |
var bar = 1; |
||||
|
|
||||
return bar; |
return bar; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var bar = 1; |
var bar = 1; |
||||
|
|
||||
return bar; |
return bar; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,5 +1,6 @@ |
|||||
(function (aBC) { 'use strict'; |
(function (aBC) { |
||||
|
'use strict'; |
||||
|
|
||||
aBC.foo(); |
aBC.foo(); |
||||
|
|
||||
})(a_b_c); |
}(a_b_c)); |
@ -1,7 +1,8 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
/* this is an intro */ |
/* this is an intro */ |
||||
console.log( 'hello world' ); |
console.log( 'hello world' ); |
||||
/* this is an outro */ |
/* this is an outro */ |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
function a () {} |
function a () {} |
||||
|
|
||||
a(); |
a(); |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,9 +1,10 @@ |
|||||
this.foo = this.foo || {}; |
this.foo = this.foo || {}; |
||||
this.foo.bar = this.foo.bar || {}; |
this.foo.bar = this.foo.bar || {}; |
||||
this.foo.bar.baz = (function () { 'use strict'; |
this.foo.bar.baz = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,9 +1,10 @@ |
|||||
this.foo = this.foo || {}; |
this.foo = this.foo || {}; |
||||
this.foo.bar = this.foo.bar || {}; |
this.foo.bar = this.foo.bar || {}; |
||||
(function (exports) { 'use strict'; |
(function (exports) { |
||||
|
'use strict'; |
||||
|
|
||||
var answer = 42; |
var answer = 42; |
||||
|
|
||||
exports.answer = answer; |
exports.answer = answer; |
||||
|
|
||||
})((this.foo.bar.baz = {})); |
}((this.foo.bar.baz = {}))); |
||||
|
@ -1,5 +1,6 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
console.log( 'this is it' ); |
console.log( 'this is it' ); |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
var myBundle = (function () { 'use strict'; |
var myBundle = (function () { |
||||
|
'use strict'; |
||||
|
|
||||
var main = 42; |
var main = 42; |
||||
|
|
||||
return main; |
return main; |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,5 +1,6 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
|
|
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,7 +1,8 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
var foo = 42; |
var foo = 42; |
||||
|
|
||||
assert.equal( foo, 42 ); |
assert.equal( foo, 42 ); |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1 +1 @@ |
|||||
{"version":3,"file":"iife.js","sources":["../foo.js","../bar.js","../main.js"],"sourcesContent":["export default function foo () {\n\tconsole.log( 'hello from foo.js' );\n}\n","export default function bar () {\n\tconsole.log( 'hello from bar.js' );\n}\n","import foo from './foo';\nimport bar from './bar';\n\nconsole.log( 'hello from main.js' );\n\nfoo();\nbar();\n"],"names":[],"mappings":";;CAAe,SAAS,GAAG,IAAI;AAC/B,CAAA,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;AACpC,CAAA,CAAC;;CCFc,SAAS,GAAG,IAAI;AAC/B,CAAA,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;AACpC,CAAA,CAAC;;CCCD,OAAO,CAAC,GAAG,EAAE,oBAAoB,EAAE,CAAC;;AAEpC,CAAA,GAAG,EAAE,CAAC;AACN,CAAA,GAAG,EAAE,CAAC,;;"} |
{"version":3,"file":"iife.js","sources":["../foo.js","../bar.js","../main.js"],"sourcesContent":["export default function foo () {\n\tconsole.log( 'hello from foo.js' );\n}\n","export default function bar () {\n\tconsole.log( 'hello from bar.js' );\n}\n","import foo from './foo';\nimport bar from './bar';\n\nconsole.log( 'hello from main.js' );\n\nfoo();\nbar();\n"],"names":[],"mappings":";;;CAAe,SAAS,GAAG,IAAI;AAC/B,CAAA,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;AACpC,CAAA,CAAC;;CCFc,SAAS,GAAG,IAAI;AAC/B,CAAA,CAAC,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,CAAC;AACpC,CAAA,CAAC;;CCCD,OAAO,CAAC,GAAG,EAAE,oBAAoB,EAAE,CAAC;;AAEpC,CAAA,GAAG,EAAE,CAAC;AACN,CAAA,GAAG,EAAE,CAAC,;;"} |
@ -1,7 +1,8 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
function x () { return 'x' }; |
function x () { return 'x' }; |
||||
|
|
||||
assert.equal( x(), 'x' ); |
assert.equal( x(), 'x' ); |
||||
|
|
||||
})(); |
}()); |
||||
|
@ -1,8 +1,9 @@ |
|||||
(function () { 'use strict'; |
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
var a = 'a'; |
var a = 'a'; |
||||
var b = 'b'; |
var b = 'b'; |
||||
assert.equal( a, 'a' ); |
assert.equal( a, 'a' ); |
||||
assert.equal( b, 'b' ); |
assert.equal( b, 'b' ); |
||||
|
|
||||
})(); |
}()); |
Loading…
Reference in new issue