mirror of https://github.com/lukechilds/rollup.git
Rich Harris
8 years ago
committed by
GitHub
4 changed files with 31 additions and 6 deletions
@ -0,0 +1,8 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'correctly namespaces sub-functions (#910)', |
||||
|
exports: function ( exports ) { |
||||
|
assert.equal( exports, 'foobar' ); |
||||
|
} |
||||
|
}; |
@ -0,0 +1,11 @@ |
|||||
|
import { problematicFunc as otherFunc } from './problematicFunc'; |
||||
|
function innerFunc() { |
||||
|
function problematicFunc () { |
||||
|
return otherFunc(); |
||||
|
} |
||||
|
return problematicFunc(); |
||||
|
} |
||||
|
|
||||
|
var res = innerFunc(); |
||||
|
|
||||
|
export default res; |
@ -0,0 +1,5 @@ |
|||||
|
function problematicFunc() { |
||||
|
return 'foobar'; |
||||
|
} |
||||
|
|
||||
|
export { problematicFunc }; |
Loading…
Reference in new issue