mirror of
https://github.com/tiennm99/FBcount.git
synced 2026-05-15 06:58:07 +00:00
23 lines
641 B
JavaScript
23 lines
641 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
pkg: {
|
|
patches: {
|
|
'lib/error.js': [
|
|
'return err;',
|
|
'if (err.message.indexOf("SyntaxError") >= 0) {' +
|
|
'err.message = "Pkg: Try to specify your ' +
|
|
'javascript file in \'assets\' in config. " + err.message;' +
|
|
'};\n' +
|
|
'return err;',
|
|
'if (Error.captureStackTrace) {',
|
|
'if (this.message.indexOf("SyntaxError") >= 0) {' +
|
|
'this.message = "Pkg: Try to specify your ' +
|
|
'javascript file in \'assets\' in config. " + this.message;' +
|
|
'};\n' +
|
|
'if (Error.captureStackTrace) {'
|
|
]
|
|
}
|
|
}
|
|
};
|