pksjce / webpack-js-evaluation-marks

Adds performance.marks at the beginning and end of webpack bundles to measure JS evaluation time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS Evaluation Marks Webpack Plugin

Adds performance.marks at the beginning and end of webpack bundles to measure JS evaluation time

Getting started

npm install webpack-js-evaluation-marks --save
new JSEvaluationMarksPlugin({
  namePrefix: 'js_evaluation_',
})
const measures = window.performance.getEntriesByType('measure');
const measure = measures.find(m => m.name === `js_evaluation_${bundleName}`);

About

Adds performance.marks at the beginning and end of webpack bundles to measure JS evaluation time

License:Other


Languages

Language:Shell 70.6%Language:TypeScript 29.4%