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.
24 lines
636 B
24 lines
636 B
const assert = require( 'assert' );
|
|
|
|
module.exports = {
|
|
description: 'uses original name of default export function (#1011)',
|
|
warnings: [
|
|
{
|
|
code: 'AMBIGUOUS_DEFAULT_EXPORT',
|
|
message: `Ambiguous default export (is a call expression, but looks like a function declaration)`,
|
|
pos: 15,
|
|
loc: {
|
|
file: require( 'path' ).resolve( __dirname, 'foo.js' ),
|
|
line: 1,
|
|
column: 15
|
|
},
|
|
frame: `
|
|
1: export default function foo ( a, b ) {
|
|
^
|
|
2: assert.equal( a, b );
|
|
3: return 3;
|
|
`,
|
|
url: `https://github.com/rollup/rollup/wiki/Troubleshooting#ambiguous-default-export`
|
|
}
|
|
]
|
|
};
|
|
|