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.
23 lines
532 B
23 lines
532 B
const path = require( 'path' );
|
|
const assert = require( 'assert' );
|
|
|
|
module.exports = {
|
|
description: 'default export is not re-exported with export *',
|
|
error: {
|
|
code: 'MISSING_EXPORT',
|
|
message: `'default' is not exported by foo.js`,
|
|
pos: 7,
|
|
loc: {
|
|
file: path.resolve( __dirname, 'main.js' ),
|
|
line: 1,
|
|
column: 7
|
|
},
|
|
frame: `
|
|
1: import def from './foo.js';
|
|
^
|
|
2:
|
|
3: console.log( def );
|
|
`,
|
|
url: `https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module`
|
|
}
|
|
};
|
|
|