Skip to content

DasRed/esbuild-plugin-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-plugin-time

simple time measuring of the build process

Installation

npm i --save-dev esbuild-plugin-time

Usage

import esbuild from 'esbuild';
import time from 'esbuild-plugin-time';

esbuild.build({
    entryPoints: ['./src/index.js'],
    bundle:      true,
    outfile:     './dist/index.js',
    plugins:     [
        time(),
    ]
});
import esbuild from 'esbuild';
import time from 'esbuild-plugin-time';

esbuild.build({
    entryPoints: ['./src/index.js'],
    bundle:      true,
    outfile:     './dist/index.js',
    plugins:     [
        time('Bundle A'),
    ]
});

esbuild.build({
    entryPoints: ['./src/stuff.js'],
    bundle:      true,
    outfile:     './dist/stuff.js',
    plugins:     [
        time('Bundle B'),
    ]
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published