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
357 B
13 lines
357 B
8 years ago
|
const assert = require( 'assert' );
|
||
|
|
||
|
module.exports = {
|
||
|
description: 'warns on unused imports ([#595])',
|
||
|
warnings: warnings => {
|
||
|
assert.deepEqual( warnings, [
|
||
|
`Treating 'external' as external dependency`,
|
||
|
`'unused', 'notused' and 'neverused' are imported from external module 'external' but never used`,
|
||
|
`Generated an empty bundle`
|
||
|
]);
|
||
|
}
|
||
|
};
|