UNPKG

321 BJavaScriptView Raw
1// TODO: Remove once Components is stable
2
3'use strict';
4
5try {
6 module.exports = require('@serverless/components');
7} catch (error) {
8 module.exports = null;
9 if (process.env.SLS_DEBUG) {
10 require('./classes/Error').logWarning(
11 `Components v2 engine initialization crashed with: ${error.stack}`
12 );
13 }
14}