mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
15 lines
314 B
JavaScript
15 lines
314 B
JavaScript
// TODO: Remove once Components is stable
|
|
|
|
'use strict';
|
|
|
|
try {
|
|
module.exports = require('@serverless/cli');
|
|
} catch (error) {
|
|
module.exports = null;
|
|
if (process.env.SLS_DEBUG) {
|
|
require('./classes/Error').logWarning(
|
|
`Components v1 engine initialization crashed with: ${error.stack}`
|
|
);
|
|
}
|
|
}
|