@cypress/webpack-preprocessor
Version:
Cypress preprocessor for bundling JavaScript via webpack
12 lines (11 loc) • 381 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTypescript = void 0;
var getTypescript = function (typescriptPath) {
var projectTsPath = require.resolve(typescriptPath || 'typescript', {
paths: [process.cwd()],
});
var typescript = require(projectTsPath);
return typescript;
};
exports.getTypescript = getTypescript;