mirror of https://github.com/lukechilds/rollup.git
Browse Source
TypeError: Cannot read property 'addReference' of undefined -> Export 'foo' is not defined by '<module name>'better-aggressive
Oskar Segersvärd
9 years ago
4 changed files with 23 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
var assert = require( 'assert' ); |
|||
|
|||
module.exports = { |
|||
solo: true, |
|||
|
|||
error: function ( err ) { |
|||
console.log( err.message ); |
|||
// assert.equal( path.normalize(err.file), path.resolve( __dirname, 'main.js' ) );
|
|||
// assert.deepEqual( err.loc, { line: 8, column: 0 });
|
|||
assert.ok( /Export "foo" is not defined by/.test( err.message ) ); |
|||
} |
|||
}; |
@ -0,0 +1,3 @@ |
|||
import * as mod from './empty.js'; |
|||
|
|||
mod.foo(); |
Loading…
Reference in new issue