diff --git a/babel.config.js b/babel.config.js index 8f5266f94..dd104b4ca 100644 --- a/babel.config.js +++ b/babel.config.js @@ -12,6 +12,7 @@ module.exports = { '@babel/plugin-proposal-class-properties', '@babel/plugin-syntax-dynamic-import', '@babel/plugin-transform-runtime', + 'transform-require-context', ], }, }, diff --git a/package.json b/package.json index e9b797160..af9a3f339 100644 --- a/package.json +++ b/package.json @@ -142,6 +142,7 @@ "babel-plugin-import": "^1.1.1", "babel-plugin-inline-import-data-uri": "^1.0.1", "babel-plugin-istanbul": "^6.0.0", + "babel-plugin-transform-require-context": "^0.1.1", "case-sensitive-paths-webpack-plugin": "^2.1.2", "chalk": "^4.1.1", "cheerio": "^1.0.0-rc.2",