Open tommybl opened 3 years ago
I was able to get around this by having webpack run this package through babel-loader. In webpack.config.js:
// IE11
config.module.rules.push({
test: /\.js$/,
include: path.resolve(__dirname, '../node_modules/twig-drupal-filters/'),
loader: 'babel-loader',
});
babel.config.js also needed updating:
const sourceType = 'unambiguous';
This package does not work on IE11, as it uses unsupported features:
clean_id.js
line 29, use of string interpolation:without.js
line 28, use offor...of
statement:The package should be transpiled into cross-browser supported code using a tool like Babel, before it's published to NPM.
Thanks!