From 1f3eae802c1da2af982d01a0766bd6b46383b2f5 Mon Sep 17 00:00:00 2001 From: Thomas Allmer Date: Thu, 20 Dec 2018 14:18:51 +0100 Subject: [PATCH] fix(testing-karma): hotfix use @babel/polyfill/dist --- package.json | 1 + packages/testing-karma/es5-settings.js | 2 +- packages/testing-karma/package.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bea239bd..c967a3de 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "site:start": "npm run vuepress:start", "test": "lerna run test --stream --concurrency 1", "test:ci": "lerna run test:ci", + "test:es5": "lerna run test:es5 --stream --concurrency 1", "test:es5:bs": "lerna run test:es5:bs --stream --concurrency 1", "vuepress:build": "vuepress build docs", "vuepress:start": "vuepress dev docs" diff --git a/packages/testing-karma/es5-settings.js b/packages/testing-karma/es5-settings.js index 171423cb..f73834ca 100644 --- a/packages/testing-karma/es5-settings.js +++ b/packages/testing-karma/es5-settings.js @@ -10,7 +10,7 @@ */ module.exports = () => ({ files: [ - { pattern: require.resolve('@babel/polyfill/browser'), watched: false }, + { pattern: require.resolve('@babel/polyfill/dist/polyfill.min.js'), watched: false }, { pattern: require.resolve('@webcomponents/webcomponentsjs/custom-elements-es5-adapter'), watched: false, diff --git a/packages/testing-karma/package.json b/packages/testing-karma/package.json index bfb532ee..8dff8892 100644 --- a/packages/testing-karma/package.json +++ b/packages/testing-karma/package.json @@ -19,6 +19,7 @@ "@babel/core": "^7.1.6", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/polyfill": "^7.0.0", + "@babel/preset-env": "^7.0.0", "@open-wc/webpack": "^0.1.3", "@webcomponents/webcomponentsjs": "^2.2.0", "babel-loader": "^8.0.4",