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.
22 lines
422 B
22 lines
422 B
const path = require( 'path' );
|
|
const assert = require( 'assert' );
|
|
|
|
module.exports = {
|
|
description: 'throws on duplicate named exports',
|
|
error: {
|
|
code: 'PARSE_ERROR',
|
|
message: `Duplicate export 'foo'`,
|
|
pos: 38,
|
|
loc: {
|
|
file: path.resolve( __dirname, 'foo.js' ),
|
|
line: 3,
|
|
column: 9
|
|
},
|
|
frame: `
|
|
1: var foo = 1;
|
|
2: export { foo };
|
|
3: export { foo } from './bar.js';
|
|
^
|
|
`
|
|
}
|
|
};
|
|
|