Dabolus/polymer3-webpack-starter-kit

View on GitHub
src/components/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import {setRootPath, setPassiveTouchGestures} from '@polymer/polymer/lib/utils/settings';
import {MyApp} from './shell/shell.component';

declare var window: any;

setRootPath(window.Polymer.rootPath);
setPassiveTouchGestures(true);

const elements = [
  MyApp,
  // Add your STATIC elements here
];

for (const el of elements) {
  customElements.define(el.is, el);
}