diff --git a/packages/rollup-plugin-html/package.json b/packages/rollup-plugin-html/package.json
index 511e245e..b0458840 100644
--- a/packages/rollup-plugin-html/package.json
+++ b/packages/rollup-plugin-html/package.json
@@ -22,12 +22,12 @@
"demo:spa:manual-inject": "rm -rf demo/dist && rollup -c demo/spa/manual-inject.rollup.config.js --watch & yarn serve-demo",
"demo:spa:multi-output": "rm -rf demo/dist && rollup -c demo/spa/multi-output.rollup.config.js --watch & yarn serve-demo",
"demo:spa:template": "rm -rf demo/dist && rollup -c demo/spa/template.rollup.config.js --watch & yarn serve-demo",
+ "prepublishOnly": "../../scripts/insert-header.js",
"serve-demo": "es-dev-server --watch --root-dir demo/dist --app-index index.html --compatibility none --open",
"test": "npm run test:node",
"test:node": "mocha test/**/*.test.js test/*.test.js",
"test:update-snapshots": "mocha test/**/*.test.js test/*.test.js --update-snapshots",
- "test:watch": "npm run test:node -- --watch",
- "prepublishOnly": "../../scripts/insert-header.js"
+ "test:watch": "npm run test:node -- --watch"
},
"files": [
"*.js",
@@ -54,4 +54,4 @@
"rimraf": "^3.0.0",
"rollup": "^1.31.1"
}
-}
\ No newline at end of file
+}
diff --git a/packages/rollup-plugin-polyfills-loader/package.json b/packages/rollup-plugin-polyfills-loader/package.json
index e615d5d1..ab73eddb 100644
--- a/packages/rollup-plugin-polyfills-loader/package.json
+++ b/packages/rollup-plugin-polyfills-loader/package.json
@@ -15,9 +15,9 @@
"homepage": "https://github.com/open-wc/open-wc/packages/rollup-plugin-polyfills-loader",
"main": "rollup-plugin-polyfills-loader.js",
"scripts": {
- "demo:single-build": "rm -rf demo/dist && rollup -c demo/single-build/rollup.config.js --watch & yarn serve-demo",
"demo:multi-build": "rm -rf demo/dist && rollup -c demo/multi-build/rollup.config.js --watch & yarn serve-demo",
"demo:multi-page": "rm -rf demo/dist && rollup -c demo/multi-page/rollup.config.js --watch & yarn serve-demo",
+ "demo:single-build": "rm -rf demo/dist && rollup -c demo/single-build/rollup.config.js --watch & yarn serve-demo",
"serve-demo": "es-dev-server --watch --root-dir demo/dist --app-index index.html --compatibility none --open",
"test": "npm run test:node",
"test:node": "mocha test/**/*.test.js test/*.test.js",
@@ -34,15 +34,15 @@
"html",
"polyfill"
],
+ "dependencies": {
+ "@open-wc/rollup-plugin-html": "^0.1.3",
+ "polyfills-loader": "^1.3.1"
+ },
"devDependencies": {
"chai": "^4.2.0",
"es-dev-server": "^1.42.1",
"lit-element": "^2.2.1",
"rimraf": "^3.0.0",
"rollup": "^1.31.1"
- },
- "dependencies": {
- "@open-wc/rollup-plugin-html": "^0.1.3",
- "polyfills-loader": "^1.3.0"
}
-}
\ No newline at end of file
+}
diff --git a/packages/rollup-plugin-polyfills-loader/rollup-plugin-polyfills-loader.js b/packages/rollup-plugin-polyfills-loader/rollup-plugin-polyfills-loader.js
index b108d249..92804fe6 100644
--- a/packages/rollup-plugin-polyfills-loader/rollup-plugin-polyfills-loader.js
+++ b/packages/rollup-plugin-polyfills-loader/rollup-plugin-polyfills-loader.js
@@ -15,7 +15,7 @@ const { createPolyfillsLoaderConfig } = require('./src/createPolyfillsLoaderConf
* @param {PluginOptions} pluginOptions
* @returns {Plugin}
*/
-function rollupPluginHtml(pluginOptions) {
+function rollupPluginPolyfillsLoader(pluginOptions) {
pluginOptions = {
htmlFileName: 'index.html',
...(pluginOptions || {}),
@@ -80,4 +80,4 @@ function rollupPluginHtml(pluginOptions) {
};
}
-module.exports = rollupPluginHtml;
+module.exports = rollupPluginPolyfillsLoader;
diff --git a/packages/rollup-plugin-polyfills-loader/src/createPolyfillsLoaderConfig.js b/packages/rollup-plugin-polyfills-loader/src/createPolyfillsLoaderConfig.js
index c3918080..5ef1a7ac 100644
--- a/packages/rollup-plugin-polyfills-loader/src/createPolyfillsLoaderConfig.js
+++ b/packages/rollup-plugin-polyfills-loader/src/createPolyfillsLoaderConfig.js
@@ -8,7 +8,7 @@ const { fileTypes } = require('polyfills-loader');
const { createError } = require('./utils');
/** @param {ModuleFormat} [format] */
-function formatToFilyType(format) {
+function formatToFileType(format) {
switch (format) {
case 'es':
case 'esm':
@@ -28,7 +28,7 @@ function bundleNotFoundError(name) {
/** @param {EntrypointBundle} bundle */
function createEntrypoints(bundle) {
- const type = formatToFilyType(bundle.options.format);
+ const type = formatToFileType(bundle.options.format);
const files = bundle.entrypoints.map(e => ({ type, path: e.importPath }));
return { files };
}
diff --git a/yarn.lock b/yarn.lock
index 5a99c8b2..8088d6e9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3092,6 +3092,28 @@
resolved "https://registry.yarnpkg.com/@open-wc/semantic-dom-diff/-/semantic-dom-diff-0.13.21.tgz#718b9ec5f9a98935fc775e577ad094ae8d8b7dea"
integrity sha512-BONpjHcGX2zFa9mfnwBCLEmlDsOHzT+j6Qt1yfK3MzFXFtAykfzFjAgaxPetu0YbBlCfXuMlfxI4vlRGCGMvFg==
+"@open-wc/testing-karma-bs@file:./packages/testing-karma-bs":
+ version "1.3.46"
+ dependencies:
+ "@open-wc/testing-karma" "^3.3.2"
+ "@types/node" "^11.13.0"
+ karma-browserstack-launcher "^1.0.0"
+
+"@open-wc/testing-karma@file:./packages/testing-karma":
+ version "3.3.2"
+ dependencies:
+ "@open-wc/karma-esm" "^2.13.13"
+ axe-core "^3.3.1"
+ karma "^4.1.0"
+ karma-chrome-launcher "^3.1.0"
+ karma-coverage-istanbul-reporter "^2.0.0"
+ karma-mocha "^1.0.0"
+ karma-mocha-reporter "^2.0.0"
+ karma-mocha-snapshot "^0.2.1"
+ karma-snapshot "^0.6.0"
+ karma-source-map-support "^1.3.0"
+ mocha "^6.2.2"
+
"@reach/router@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@reach/router/-/router-1.2.1.tgz#34ae3541a5ac44fa7796e5506a5d7274a162be4e"