diff --git a/CHANGELOG.md b/CHANGELOG.md index 5176c51..1580f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [[6.2.3](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.3)] + +- Added support for IE11, the webpack generated runtime-code should not use arrow functions + ## [[6.2.2](https://github.com/Mastermindzh/react-cookie-consent/releases/tag/6.2.2)] - Fixed the return type of getCookieConsentValue in the dts file. diff --git a/webpack.config.js b/webpack.config.js index 34a8380..0415dcd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,6 +7,9 @@ module.exports = { path: path.resolve(__dirname, "build"), filename: "index.js", libraryTarget: "commonjs2", // THIS IS THE MOST IMPORTANT LINE! :mindblow: I wasted more than 2 days until realize this was the line most important in all this guide. + environment: { + arrowFunction: false, // the generated runtime-code should not use arrow functions + }, }, module: { rules: [