During our CI checks on PRs, we check to see if all code can be properly transpiled into es5 to support IE11. We've since dropped support officially for IE11, but the check is still present. A dependency of TinyMCE is triggering an error in the is-es5 check. Adding this webpack config will except the package from the check, to prevent the CI from failing. Since we no longer support IE11, This check is not needed, and ok to bypass.
8 lines
208 B
JavaScript
8 lines
208 B
JavaScript
const { createConfig } = require('@edx/frontend-build');
|
|
|
|
const config = createConfig('webpack-prod');
|
|
|
|
config.module.rules[0].exclude = /node_modules\/(?!(tinymce|@tinymce|@edx))/;
|
|
|
|
module.exports = config;
|