react-perf-tool
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "react-perf-tool", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Record and debug React performance from the browser", | ||
@@ -43,5 +43,7 @@ "main": "lib/react-perf-tool.js", | ||
"eslint-config-airbnb": "9.0.1", | ||
"eslint-loader": "^1.6.0", | ||
"eslint-plugin-import": "^1.8.0", | ||
"eslint-plugin-jsx-a11y": "^1.2.0", | ||
"eslint-plugin-react": "^5.1.1", | ||
"extract-text-webpack-plugin": "^1.0.1", | ||
"jsdom": "^9.1.0", | ||
@@ -48,0 +50,0 @@ "mocha": "2.4.5", |
@@ -40,7 +40,5 @@ import React, { Component } from 'react'; | ||
const getMeasurements = this.props.perf.getWasted ? this.props.perf.getWasted : this.props.perf.getMeasurementsSummaryMap; | ||
console.log('--->>', this.props.perf.getMeasurementsSummaryMap(this.props.perf._allMeasurements)); | ||
const measurements = getMeasurements(this.props.perf._allMeasurements) | ||
.filter(measurement => { | ||
const label = measurement['Owner > component'] | ||
.split(' > ').pop(); | ||
const label = measurement.key.split(' > ').pop(); | ||
return !excludedComponents.includes(label); | ||
@@ -47,0 +45,0 @@ }); |
var webpack = require('webpack'); | ||
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin; | ||
@@ -8,4 +9,8 @@ var path = require('path'); | ||
var plugins = [], outputFile; | ||
var outputFile; | ||
var plugins = [ | ||
new ExtractTextPlugin('styles.css', { allChunks: true }), | ||
]; | ||
if (env === 'build') { | ||
@@ -42,3 +47,4 @@ plugins.push(new UglifyJsPlugin({ minimize: true })); | ||
test: /\.css$/, | ||
loaders: ['style', 'css'] | ||
loader: ExtractTextPlugin.extract('style', 'css'), | ||
exclude: /node_modules/ | ||
} | ||
@@ -45,0 +51,0 @@ ] |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
5789659
29672
0
27
46