mirror of https://github.com/lukechilds/rollup.git
Browse Source
This doesn’t fully work yet since it causes the erroneous-nested-member-expression test to regress. Any thoughts how to make these play nice together?semi-dynamic-namespace-imports
Brian Donovan
9 years ago
13 changed files with 60 additions and 4 deletions
@ -0,0 +1,3 @@ |
|||||
|
module.exports = { |
||||
|
description: 'it does dynamic lookup optimization of internal namespaces for string-literal keys' |
||||
|
}; |
@ -0,0 +1,7 @@ |
|||||
|
define(function () { 'use strict'; |
||||
|
|
||||
|
function a () {} |
||||
|
|
||||
|
a(); |
||||
|
|
||||
|
}); |
@ -0,0 +1,5 @@ |
|||||
|
'use strict'; |
||||
|
|
||||
|
function a () {} |
||||
|
|
||||
|
a(); |
@ -0,0 +1,3 @@ |
|||||
|
function a () {} |
||||
|
|
||||
|
a(); |
@ -0,0 +1,8 @@ |
|||||
|
(function () { |
||||
|
'use strict'; |
||||
|
|
||||
|
function a () {} |
||||
|
|
||||
|
a(); |
||||
|
|
||||
|
}()); |
@ -0,0 +1,11 @@ |
|||||
|
(function (global, factory) { |
||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory() : |
||||
|
typeof define === 'function' && define.amd ? define(factory) : |
||||
|
(factory()); |
||||
|
}(this, function () { 'use strict'; |
||||
|
|
||||
|
function a () {} |
||||
|
|
||||
|
a(); |
||||
|
|
||||
|
})); |
@ -0,0 +1,3 @@ |
|||||
|
import * as quux from './quux.js'; |
||||
|
|
||||
|
export { quux }; |
@ -0,0 +1,3 @@ |
|||||
|
import * as bar from './bar.js'; |
||||
|
|
||||
|
export { bar }; |
@ -0,0 +1,3 @@ |
|||||
|
import * as foo from './foo.js'; |
||||
|
|
||||
|
foo['bar']['quux']['a'](); |
@ -0,0 +1 @@ |
|||||
|
export function a () {} |
Loading…
Reference in new issue