Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit 1030951

Browse files
authored
feat: transpile support folder (#470)
In the CRA preprocessor add the support folder to the list of folders to be transpiled like the source folders
1 parent b0e1cb4 commit 1030951

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/cra-v3/file-preprocessor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module.exports = config => {
3535
debug('component test folder: %s', config.componentFolder)
3636
debug('fixtures folder', config.fixturesFolder)
3737
debug('integration test folder: %s', config.integrationFolder)
38+
debug('support folder: %s', config.supportFolder)
3839

3940
const additionalFolders = []
4041
// user can disable folders, so check first
@@ -47,6 +48,9 @@ module.exports = config => {
4748
if (config.integrationFolder) {
4849
additionalFolders.push(config.integrationFolder)
4950
}
51+
if (config.supportFolder) {
52+
additionalFolders.push(config.supportFolder)
53+
}
5054
debug('additional folders: %o', additionalFolders)
5155

5256
const opts = {

0 commit comments

Comments
 (0)