From 39e7b8f4b636a986e39c141db6da45566ad711d8 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 7 Jul 2022 10:07:54 +0800 Subject: [PATCH] test: add require context --- babel.config.js | 1 + package.json | 1 + 2 files changed, 2 insertions(+) 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",