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
575 B
23 lines
575 B
6 months ago
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.createRollupError = void 0;
|
||
|
function createRollupError(id, error) {
|
||
|
const { message, name, stack } = error;
|
||
|
const rollupError = {
|
||
|
id,
|
||
|
plugin: 'vue',
|
||
|
message,
|
||
|
name,
|
||
|
stack,
|
||
|
};
|
||
|
if ('code' in error && error.loc) {
|
||
|
rollupError.loc = {
|
||
|
file: id,
|
||
|
line: error.loc.start.line,
|
||
|
column: error.loc.start.column,
|
||
|
};
|
||
|
}
|
||
|
return rollupError;
|
||
|
}
|
||
|
exports.createRollupError = createRollupError;
|