Skip to content

Commit

Permalink
fix: update build target to es6 and remove some polyfills
Browse files Browse the repository at this point in the history
BREAKING CHANGE: requires es6 support from browsers
  • Loading branch information
StevenKowalzik committed Mar 8, 2023
1 parent a02cc17 commit fd55092
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
defaults
defaults and supports es6-module
maintained node versions
7 changes: 0 additions & 7 deletions polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,5 @@ require('core-js')
require('regenerator-runtime/runtime')
require('whatwg-fetch')

try {
/* eslint no-eval: "warn" */
eval(require('@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js'))
} catch (error) {
console.log(error)
}

require('@webcomponents/webcomponentsjs')
require('intersection-observer')
5 changes: 0 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,12 @@ module.exports = {
rules: [
{
test: /\.js$/,
exclude: /custom-elements-es5-adapter/,
use: ['cache-loader', 'babel-loader'],
},
{
test: /\.scss$/,
use: ['css-loader', 'postcss-loader', 'sass-loader'],
},
{
test: /^custom-elements-es5-adapter\.js$/,
use: ['raw-loader'],
},
],
},
plugins: [
Expand Down

0 comments on commit fd55092

Please sign in to comment.