UNPKG

@sentry/wizard

Version:

Sentry wizard helping you to configure your project

13 lines 508 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAfterImportsInsertionIndex = void 0; function getAfterImportsInsertionIndex(originalEntryServerModAST) { for (let x = originalEntryServerModAST.body.length - 1; x >= 0; x--) { if (originalEntryServerModAST.body[x].type === 'ImportDeclaration') { return x + 1; } } return 0; } exports.getAfterImportsInsertionIndex = getAfterImportsInsertionIndex; //# sourceMappingURL=utils.js.map