UNPKG

@badeball/cypress-cucumber-preprocessor

Version:

[![Build status](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml/badge.svg)](https://github.com/badeball/cypress-cucumber-preprocessor/actions/workflows/build.yml) [![Npm package weekly downloads](https://badgen.net/n

20 lines (19 loc) 589 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createRollupPlugin = void 0; const template_1 = require("../template"); function createRollupPlugin(config) { return { name: "transform-feature", async transform(src, id) { if (/\.feature$/.test(id)) { return { code: await (0, template_1.compile)(config, src, id), map: null, }; } }, }; } exports.createRollupPlugin = createRollupPlugin; exports.default = createRollupPlugin;