mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
8 years ago
16 changed files with 50 additions and 10 deletions
@ -1,6 +0,0 @@ |
|||||
const assert = require( 'assert' ); |
|
||||
|
|
||||
module.exports = { |
|
||||
description: 'populates file property of sourcemap (#986)', |
|
||||
command: 'rollup -i main.js -o _actual/bundle.js -m' |
|
||||
}; |
|
@ -1,2 +0,0 @@ |
|||||
console.log( 42 ); |
|
||||
//# sourceMappingURL=bundle.js.map
|
|
@ -1 +0,0 @@ |
|||||
{"version":3,"file":"bundle.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC"} |
|
@ -0,0 +1,15 @@ |
|||||
|
const assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'populates file property of sourcemap when plugins are used (#986)', |
||||
|
options: { |
||||
|
plugins: [ |
||||
|
{ |
||||
|
transform () {} |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
test: ( code, map, profile ) => { |
||||
|
assert.equal( map.file, `bundle.${profile.format}.js` ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,6 @@ |
|||||
|
define(function () { 'use strict'; |
||||
|
|
||||
|
console.log( 42 ); |
||||
|
|
||||
|
}); |
||||
|
//# sourceMappingURL=bundle.amd.js.map
|
@ -0,0 +1 @@ |
|||||
|
{"version":3,"file":"bundle.amd.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":";;AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,;;"} |
@ -0,0 +1,4 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
console.log( 42 ); |
||||
|
//# sourceMappingURL=bundle.cjs.js.map
|
@ -0,0 +1 @@ |
|||||
|
{"version":3,"file":"bundle.cjs.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":";;AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC"} |
@ -0,0 +1,2 @@ |
|||||
|
console.log( 42 ); |
||||
|
//# sourceMappingURL=bundle.es.js.map
|
@ -0,0 +1 @@ |
|||||
|
{"version":3,"file":"bundle.es.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":"AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC"} |
@ -0,0 +1,7 @@ |
|||||
|
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
|
console.log( 42 ); |
||||
|
|
||||
|
}()); |
||||
|
//# sourceMappingURL=bundle.iife.js.map
|
@ -0,0 +1 @@ |
|||||
|
{"version":3,"file":"bundle.iife.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":";;;AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,;;"} |
@ -0,0 +1,10 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
||||
|
typeof define === 'function' && define.amd ? define(factory) : |
||||
|
(factory()); |
||||
|
}(this, (function () { 'use strict'; |
||||
|
|
||||
|
console.log( 42 ); |
||||
|
|
||||
|
}))); |
||||
|
//# sourceMappingURL=bundle.umd.js.map
|
@ -0,0 +1 @@ |
|||||
|
{"version":3,"file":"bundle.umd.js","sources":["../main.js"],"sourcesContent":["console.log( 42 );\n"],"names":[],"mappings":";;;;;;AAAA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,;;"} |
Loading…
Reference in new issue