mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
3 changed files with 27 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||||
|
module.exports = { |
||||
|
description: 'handles transforms that return stringified source maps (#377)', |
||||
|
|
||||
|
options: { |
||||
|
plugins: [ |
||||
|
{ |
||||
|
transform: function ( code ) { |
||||
|
return { |
||||
|
code: code, |
||||
|
// just stringify an otherwise acceptable source map
|
||||
|
map: JSON.stringify({ mappings: '' }) |
||||
|
}; |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
}, |
||||
|
|
||||
|
// ensure source maps are generated
|
||||
|
bundleOptions: { |
||||
|
sourceMap: true |
||||
|
} |
||||
|
}; |
@ -0,0 +1 @@ |
|||||
|
export default 42; |
Loading…
Reference in new issue