Instead of using webcomponents-loader, always import webcomponents-bundle. This removes the need of copying the node_modules/@webcomponents/webcomponentsjs/ directory and allows the use of import '@babel/polyfill', but at the cost of increasing the initial view1 JS from 71KB to 133KB on Chrome (since wc-bundle is always loaded).
(For consideration:)
Instead of using webcomponents-loader, always import webcomponents-bundle. This removes the need of copying the
node_modules/@webcomponents/webcomponentsjs/
directory and allows the use ofimport '@babel/polyfill'
, but at the cost of increasing the initial view1 JS from 71KB to 133KB on Chrome (since wc-bundle is always loaded).