-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
chore: use real dirName instead of urlDirName #2906
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: f5634c3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 38 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
This pull request updates the packages/sdk/src/node.ts
file to use the actual __dirname
value instead of the urlDirName
variable when executing the script node. This change ensures that the correct directory path is used for resolving any relative imports or file references within the script, improving the overall integration with the existing codebase.
File Summaries
File | Summary |
---|---|
packages/sdk/src/node.ts | The code changes replace the use of urlDirName with the actual __dirname value when executing the script node. This ensures that the correct directory path is used for resolving any relative imports or file references within the script. |
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -108,7 +108,7 @@ export function createScriptNode( | |||
scriptContext.exports, | |||
scriptContext.module, | |||
eval('require'), | |||
urlDirname, | |||
__dirname, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will be dirname of your current directory of evaluation, is that okay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incremental Review
Comments posted: 0
Configuration
Squadron Mode: essential
Commits Reviewed
39bfbb444516cec371636e59b9d262b35a603d50...1980dfa4242cd448dbfba5ef737cf0634471d214
Files Reviewed
- packages/sdk/src/node.ts
Files Ignored
These files were ignored due to the filter in the squadron.yaml file.
- .changeset/serious-actors-run.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incremental Review
Comments posted: 0
Configuration
Squadron Mode: essential
Commits Reviewed
39bfbb444516cec371636e59b9d262b35a603d50...f5634c3131828eaf42824852379936cd56e0245a
Files Reviewed
- packages/sdk/src/node.ts
Files Ignored
These files were ignored due to the filter in the squadron.yaml file.
- .changeset/serious-actors-run.md
Description
pass real dirName instead of urlDirName
Related Issue
Types of changes
Checklist