mirror of https://github.com/lukechilds/rollup.git
mnater
9 years ago
54 changed files with 163 additions and 110 deletions
@ -1,9 +1,10 @@ |
|||
// banner
|
|||
(function () { 'use strict'; |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
// intro
|
|||
console.log( 42 ); |
|||
// outro
|
|||
|
|||
})(); |
|||
}()); |
|||
// footer
|
|||
|
@ -1,9 +1,10 @@ |
|||
/* first banner */ |
|||
/* second banner */ |
|||
(function () { 'use strict'; |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
console.log( 1 + 1 ); |
|||
|
|||
})(); |
|||
}()); |
|||
/* first footer */ |
|||
/* second footer */ |
|||
|
@ -1,7 +1,8 @@ |
|||
/* this is a banner */ |
|||
(function () { 'use strict'; |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
console.log( 'hello world' ); |
|||
|
|||
})(); |
|||
}()); |
|||
/* this is a footer */ |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var bar = 1; |
|||
|
|||
return bar; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var bar = 1; |
|||
|
|||
return bar; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,5 +1,6 @@ |
|||
(function (aBC) { 'use strict'; |
|||
(function (aBC) { |
|||
'use strict'; |
|||
|
|||
aBC.foo(); |
|||
|
|||
})(a_b_c); |
|||
}(a_b_c)); |
@ -1,7 +1,8 @@ |
|||
(function () { 'use strict'; |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
/* this is an intro */ |
|||
console.log( 'hello world' ); |
|||
/* this is an outro */ |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
(function () { 'use strict'; |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
function a () {} |
|||
|
|||
a(); |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,9 +1,10 @@ |
|||
this.foo = this.foo || {}; |
|||
this.foo.bar = this.foo.bar || {}; |
|||
this.foo.bar.baz = (function () { 'use strict'; |
|||
this.foo.bar.baz = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,9 +1,10 @@ |
|||
this.foo = this.foo || {}; |
|||
this.foo.bar = this.foo.bar || {}; |
|||
(function (exports) { 'use strict'; |
|||
(function (exports) { |
|||
'use strict'; |
|||
|
|||
var answer = 42; |
|||
|
|||
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' ); |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,7 +1,8 @@ |
|||
var myBundle = (function () { 'use strict'; |
|||
var myBundle = (function () { |
|||
'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
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; |
|||
|
|||
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' }; |
|||
|
|||
assert.equal( x(), 'x' ); |
|||
|
|||
})(); |
|||
}()); |
|||
|
@ -1,8 +1,9 @@ |
|||
(function () { 'use strict'; |
|||
(function () { |
|||
'use strict'; |
|||
|
|||
var a = 'a'; |
|||
var b = 'b'; |
|||
assert.equal( a, 'a' ); |
|||
assert.equal( b, 'b' ); |
|||
|
|||
})(); |
|||
}()); |
Loading…
Reference in new issue