diff --git a/.size-snapshot.json b/.size-snapshot.json index 2f59bf042..bc049a26a 100644 --- a/.size-snapshot.json +++ b/.size-snapshot.json @@ -1,54 +1,54 @@ { "preact/dist/downshift.cjs.js": { - "bundled": 51594, - "minified": 22044, - "gzipped": 6382 + "bundled": 50885, + "minified": 21771, + "gzipped": 6211 }, "preact/dist/downshift.umd.min.js": { - "bundled": 56003, - "minified": 18564, - "gzipped": 6179 + "bundled": 56007, + "minified": 18568, + "gzipped": 6193 }, "dist/downshift.umd.min.js": { - "bundled": 60311, - "minified": 19765, - "gzipped": 6727 + "bundled": 60315, + "minified": 19769, + "gzipped": 6743 }, "dist/downshift.cjs.js": { - "bundled": 53025, - "minified": 23194, - "gzipped": 6584 + "bundled": 52316, + "minified": 22921, + "gzipped": 6409 }, "dist/downshift.umd.js": { - "bundled": 89564, - "minified": 29772, - "gzipped": 9598 + "bundled": 89568, + "minified": 29776, + "gzipped": 9613 }, "preact/dist/downshift.esm.js": { - "bundled": 51314, - "minified": 21817, - "gzipped": 6315, + "bundled": 50541, + "minified": 21504, + "gzipped": 6147, "treeshaked": { "rollup": { - "code": 16085, - "import_statements": 78 + "code": 15786, + "import_statements": 319 }, "webpack": { - "code": 17130 + "code": 17016 } } }, "dist/downshift.esm.js": { - "bundled": 52725, - "minified": 22952, - "gzipped": 6516, + "bundled": 51952, + "minified": 22639, + "gzipped": 6344, "treeshaked": { "rollup": { - "code": 16095, - "import_statements": 96 + "code": 15796, + "import_statements": 337 }, "webpack": { - "code": 17173 + "code": 17061 } } }, @@ -58,8 +58,8 @@ "gzipped": 9728 }, "preact/dist/downshift.umd.js": { - "bundled": 60544, - "minified": 21164, - "gzipped": 6955 + "bundled": 60548, + "minified": 21168, + "gzipped": 6969 } } diff --git a/other/misc-tests/jest.config.js b/other/misc-tests/jest.config.js index ca3fd7760..a351044fd 100644 --- a/other/misc-tests/jest.config.js +++ b/other/misc-tests/jest.config.js @@ -1,6 +1,13 @@ const jestConfig = require('kcd-scripts/config').jest +const babelHelpersList = require('@babel/helpers').list module.exports = Object.assign(jestConfig, { roots: ['.'], testEnvironment: 'jsdom', + moduleNameMapper: babelHelpersList.reduce((aliasMap, helper) => { + aliasMap[ + `@babel/runtime/helpers/esm/${helper}` + ] = `@babel/runtime/helpers/${helper}` + return aliasMap + }, {}), }) diff --git a/package.json b/package.json index 6fc940ca7..c85f6f36b 100644 --- a/package.json +++ b/package.json @@ -61,10 +61,12 @@ "react": ">=0.14.9" }, "dependencies": { + "@babel/runtime": "^7.1.2", "compute-scroll-into-view": "^1.0.9", "prop-types": "^15.6.0" }, "devDependencies": { + "@babel/helpers": "^7.1.2", "@types/react": "^16.4.14", "babel-plugin-macros": "^2.4.2", "babel-preset-react-native": "^5.0.0", @@ -77,7 +79,7 @@ "flow-bin": "^0.82.0", "flow-coverage-report": "^0.6.0", "jest-dom": "^2.0.2", - "kcd-scripts": "^0.44.0", + "kcd-scripts": "^0.45.0", "npm-run-all": "^4.1.2", "preact": "^8.2.6", "preact-render-to-string": "^3.7.0",