mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
2 changed files with 9 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
description: 'prevents a module importing itself', |
|||
error: function ( err ) { |
|||
assert.ok( /A module cannot import itself/.test( err.message ) ); |
|||
} |
|||
}; |
@ -0,0 +1 @@ |
|||
import me from './main'; |
Loading…
Reference in new issue