mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-23 15:39:28 -05:00
feat: allow to import/require files in CRA plugin out of src (#16453)
This commit is contained in:
committed by
GitHub
parent
a8aa9d0680
commit
811c7e3607
@@ -1,6 +1,9 @@
|
||||
// @ts-check
|
||||
const path = require('path')
|
||||
|
||||
function getTranspileFolders (config) {
|
||||
const folders = []
|
||||
const rawFolders = config.addTranspiledFolders ?? []
|
||||
const folders = rawFolders.map((folder) => path.resolve(config.projectRoot, folder))
|
||||
|
||||
// user can disable folders, so check first
|
||||
if (config.componentFolder) {
|
||||
|
||||
Reference in New Issue
Block a user