Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Commit 966efff

Browse files
magicdawnegoist
authored andcommitted
fix: add regexp to allowed type of options.transpileModules (#654)
1 parent 786e676 commit 966efff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/poi/lib/utils/validateConfig.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ module.exports = (api, config) => {
5151
const babel = struct(
5252
{
5353
jsx: 'string',
54-
transpileModules: struct.optional(struct.list(['string'])),
54+
transpileModules: struct.optional(
55+
struct.list([struct.union(['string', 'regexp'])])
56+
),
5557
namedImports: struct.optional('object'),
5658
babelrc: struct.optional('boolean'),
5759
configFile: struct.optional('boolean')

0 commit comments

Comments
 (0)