Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Fix Entry points are not detected in Windows OS #38781

Merged
merged 4 commits into from
Feb 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Scripts: Fix Entry points are not detected in Windows OS
t-hamano committed Feb 14, 2022

Verified

This commit was signed with the committer’s verified signature.
Ana06 Ana María Martínez Gómez
commit 6e56b605676520861e9a22a9d04f9debb997ea00
5 changes: 4 additions & 1 deletion packages/scripts/utils/config.js
Original file line number Diff line number Diff line change
@@ -234,7 +234,10 @@ function getWebpackEntryPoints() {

// Detects the proper file extension used in the `src` directory.
const [ entryFilepath ] = glob(
`src/${ entryName }.[jt]s?(x)`,
`src/${ entryName }.[jt]s?(x)`.replace(
gziolo marked this conversation as resolved.
Show resolved Hide resolved
/\\/g,
'/'
),
{
absolute: true,
}