You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
508 B

var assert = require( 'assert' );
9 years ago
var warned;
module.exports = {
description: 'resolves pathological cyclical dependencies gracefully',
babel: true,
9 years ago
options: {
onwarn: function ( message ) {
assert.ok( /Module .+B\.js may be unable to evaluate without .+A\.js, but is included first due to a cyclical dependency. Consider swapping the import statements in .+main\.js to ensure correct ordering/.test( message ) );
warned = true;
}
},
runtimeError: function () {
assert.ok( warned );
}
};