Skip to content

sod/cypress-esbuild-preprocessor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypress-esbuild-preprocessor

Uses https://github.com/evanw/esbuild to bundle your specs. Around 50x faster than a webpack + babel/typescript based preprocessor.

Usage

Install via

npm install -D esbuild cypress-esbuild-preprocessor

Use in your cypress/plugins/index.js

const {cypressEsbuildPreprocessor} = require('cypress-esbuild-preprocessor');
const path = require('path');

module.exports = (on, config) => {
    on(
        'file:preprocessor',
        cypressEsbuildPreprocessor({
            esbuildOptions: {
                // optional tsconfig for typescript support and path mapping (see https://github.com/evanw/esbuild for all options)
                tsconfig: path.resolve(__dirname, '../../tsconfig.json'),
            },
        }),
    );
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published