Please improve IE11 support or a build for browser targets
Closed this issue · 2 comments
We are using fast-levenshtein on clientside. Due to your intergration into this lib, we are not able to build the app for "classic" browsers (ie11). In our webpack-build process we are already transpiling some other libs. But this one throws an error related to commonjs exports syntax:
Here is our webpack babel config:
test: /\.js$/, exclude: /node_modules\/(?!(vuetify|fastest-levenshtein)\/).*/, loader: 'babel-loader', options: { cacheDirectory: true, presets: [ [ '@babel/preset-env', { debug: false, modules: false, targets: { browsers: [ '> 1%', 'last 2 versions', 'Firefox ESR', ], }, useBuiltIns: 'usage', corejs: 3, }, ], ], },
Any suggestions?
Thank you for the issue, I will try to fix it today with UMD.
With an additional config options for babel I solved my problem: sourceType: 'unambiguous'! -> https://babeljs.io/docs/en/options#sourcetype
Thank you.