mirror of https://github.com/lukechilds/rollup.git
3 changed files with 38 additions and 1 deletions
@ -0,0 +1,11 @@ |
|||||
|
const assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'does not rewrite function expression names incorrectly (#1083)', |
||||
|
options: { |
||||
|
external: [ 'path' ] |
||||
|
}, |
||||
|
exports ( exports ) { |
||||
|
assert.equal( exports.x.name, 'basename' ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,5 @@ |
|||||
|
import { basename } from 'path'; |
||||
|
|
||||
|
var x = function basename () {}; |
||||
|
|
||||
|
export { x }; |
Loading…
Reference in new issue