mirror of https://github.com/lukechilds/rollup.git
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.
13 lines
386 B
13 lines
386 B
const { resolve } = require('path');
|
|
const assert = require( 'assert' );
|
|
|
|
const r = path => resolve( __dirname, path );
|
|
|
|
module.exports = {
|
|
description: 'throws on duplicate export * from',
|
|
warnings ( warnings ) {
|
|
assert.deepEqual( warnings, [
|
|
`Conflicting namespaces: ${r('main.js')} re-exports 'foo' from both ${r('foo.js')} (will be ignored) and ${r('deep.js')}.`
|
|
]);
|
|
}
|
|
};
|
|
|