mirror of https://github.com/lukechilds/rollup.git
committed by
Philipp Weinfurter
6 changed files with 56 additions and 5 deletions
@ -0,0 +1,11 @@ |
|||||
|
var assert = require( 'assert' ); |
||||
|
|
||||
|
module.exports = { |
||||
|
description: 'resolves even more pathological cyclical dependencies gracefully', |
||||
|
buble: true, |
||||
|
options: { |
||||
|
onwarn: function ( message ) { |
||||
|
assert.ok( /unable to evaluate without/.test( message ) ); |
||||
|
} |
||||
|
} |
||||
|
}; |
@ -0,0 +1,11 @@ |
|||||
|
import { a, av } from './main'; |
||||
|
import { d, dv } from './d'; |
||||
|
import { c, cv } from './c'; |
||||
|
|
||||
|
export function b() { |
||||
|
a(av); |
||||
|
d(dv); |
||||
|
c(cv); |
||||
|
}; |
||||
|
|
||||
|
export const bv = av + dv + cv; |
@ -0,0 +1,9 @@ |
|||||
|
import { b, bv } from './b'; |
||||
|
import { a, av } from './main'; |
||||
|
|
||||
|
export function c() { |
||||
|
a(av); |
||||
|
b(bv); |
||||
|
}; |
||||
|
|
||||
|
export const cv = av + bv; |
@ -0,0 +1,7 @@ |
|||||
|
import { c, cv } from './c'; |
||||
|
|
||||
|
export function d() { |
||||
|
c(cv); |
||||
|
}; |
||||
|
|
||||
|
export const dv = cv; |
@ -0,0 +1,11 @@ |
|||||
|
import { b, bv } from './b'; |
||||
|
import { d, dv } from './d'; |
||||
|
import { c, cv } from './c'; |
||||
|
|
||||
|
export function a() { |
||||
|
b(bv); |
||||
|
d(dv); |
||||
|
c(cv); |
||||
|
}; |
||||
|
|
||||
|
export const av = bv + dv + cv; |
Loading…
Reference in new issue