mirror of https://github.com/lukechilds/rollup.git
Rich-Harris
9 years ago
6 changed files with 38 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
// solo: true,
|
|||
// show: true,
|
|||
description: 'module sorter is not confused by top-level call expressions' |
|||
}; |
@ -0,0 +1,20 @@ |
|||
import { b } from './b'; |
|||
import z from './z'; |
|||
|
|||
z(); |
|||
|
|||
const p = { |
|||
q: function () { |
|||
b.nope(); |
|||
} |
|||
}; |
|||
|
|||
(function () { |
|||
const p = { |
|||
q: function () { |
|||
b.nope(); |
|||
} |
|||
}; |
|||
})(); |
|||
|
|||
export default 42; |
@ -0,0 +1 @@ |
|||
export const b = function () {}; |
@ -0,0 +1,3 @@ |
|||
import { b } from './b'; |
|||
|
|||
export const c = function () {}; |
@ -0,0 +1,4 @@ |
|||
import a from './a'; |
|||
import z from './z'; |
|||
|
|||
z(); |
@ -0,0 +1,5 @@ |
|||
import { c } from './c'; |
|||
|
|||
export default function () { |
|||
c(); |
|||
} |
Loading…
Reference in new issue