From 3fd74b6107a4c67c3bb9c4418f759e8c5b6caa20 Mon Sep 17 00:00:00 2001 From: guiyep Date: Tue, 11 Jan 2022 20:28:24 +1000 Subject: [PATCH] fixing bundle transformer --- bundlesize.js | 3 +++ package.json | 13 +++++-------- size.json | 2 +- src/index.js | 1 - 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/bundlesize.js b/bundlesize.js index 93dd2dc..b847d5b 100644 --- a/bundlesize.js +++ b/bundlesize.js @@ -26,6 +26,9 @@ const exec = () => { fs.writeFile('./size.json', JSON.stringify(sizeObj), (err) => { if (err) throw err; console.log('File is created successfully.'); + if (delta > 8000) { + console.log('Delta is bigger than 8k.'); + } }); }); } catch (err) { diff --git a/package.json b/package.json index c1f6259..ee338f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-select-virtualized", - "version": "5.1.2", + "version": "5.2.0", "description": "Select virtualized component using: react-select v4 + react-virtualized + react hooks", "author": "guiyep", "license": "MIT", @@ -41,7 +41,6 @@ "devDependencies": { "@applitools/eyes-storybook": "^3.27.2", "@babel/core": "7.16.7", - "@babel/plugin-transform-runtime": "7.16.7", "@babel/preset-env": "7.16.7", "@babel/preset-react": "7.16.7", "@dump247/storybook-state": "1.6.1", @@ -54,7 +53,6 @@ "babel-loader": "8.2.3", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "babel-preset-minify": "0.5.1", - "core-js": "3.20.2", "eslint": "8.6.0", "eslint-config-airbnb": "19.0.4", "eslint-config-prettier": "8.3.0", @@ -112,11 +110,10 @@ "regenerator-runtime": "^0.13.9" }, "browserslist": [ - "last 2 versions", - "not ie <= 11", - "not opera >= 0", - "not opera >= 0", - "not ie <= 11" + "last 2 Chrome versions", + "last 2 Edge versions", + "last 2 Safari versions", + "last 2 Firefox versions" ], "lint-staged": { "*.{js,jsx}": [ diff --git a/size.json b/size.json index 72119d7..99a651c 100644 --- a/size.json +++ b/size.json @@ -1 +1 @@ -{"old":{"delta":0,"prettyDelta":"0 B","size":45558,"prettySize":"45.56 kB"},"new":{"delta":563,"prettyDelta":"563 B","size":46121,"prettySize":"46.12 kB"}} \ No newline at end of file +{"old":{"delta":563,"prettyDelta":"563 B","size":46121,"prettySize":"46.12 kB"},"new":{"delta":-11378,"prettyDelta":"-11.38 kB","size":34743,"prettySize":"34.74 kB"}} \ No newline at end of file diff --git a/src/index.js b/src/index.js index 8e9f5bb..fbebb88 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,3 @@ -import 'regenerator-runtime/runtime'; import { Select, Async, Creatable } from './components'; export { Select, Async, Creatable };