mirror of https://github.com/lukechilds/rollup.git
Nolan Lawson
8 years ago
16 changed files with 79 additions and 15 deletions
@ -0,0 +1,3 @@ |
|||
export function Material() { |
|||
return 'Material'; |
|||
} |
@ -0,0 +1,3 @@ |
|||
export function MaterialAgain() { |
|||
return 'MaterialAgain'; |
|||
} |
@ -0,0 +1,6 @@ |
|||
import * as Material from './Material'; |
|||
|
|||
export function Something() { |
|||
console.log(Material); |
|||
return 'Something'; |
|||
} |
@ -0,0 +1,6 @@ |
|||
import * as Material from './MaterialAgain'; |
|||
|
|||
export function SomethingAgain() { |
|||
console.log(Material); |
|||
return 'SomethingAgain'; |
|||
} |
@ -0,0 +1,8 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'correctly namespaces when using * exports, take two (#910)', |
|||
exports: function ( exports ) { |
|||
assert.deepEqual( exports, ['Material', 'MaterialAgain', 'Something', 'SomethingAgain'] ); |
|||
} |
|||
}; |
@ -0,0 +1,7 @@ |
|||
import { Something } from './Something'; |
|||
import { SomethingAgain } from './SomethingAgain'; |
|||
import { Material } from './Material'; |
|||
import { MaterialAgain } from './MaterialAgain'; |
|||
|
|||
var result = [Material(), MaterialAgain(), Something(), SomethingAgain()] |
|||
export default result; |
@ -0,0 +1,3 @@ |
|||
export function Material() { |
|||
return 'Material'; |
|||
} |
@ -0,0 +1,6 @@ |
|||
import * as Material from './Material'; |
|||
|
|||
export function Something() { |
|||
console.log(Material); |
|||
return 'Something'; |
|||
} |
@ -0,0 +1,8 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'correctly namespaces when using * exports (#910)', |
|||
exports: function ( exports ) { |
|||
assert.deepEqual( exports, [ 'Material', 'Something' ] ); |
|||
} |
|||
}; |
@ -0,0 +1,5 @@ |
|||
import { Something } from './Something'; |
|||
import { Material } from './Material'; |
|||
|
|||
var result = [Material(), Something()] |
|||
export default result; |
Loading…
Reference in new issue