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

chore: use real dirName instead of urlDirName #2906

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

2heal1
Copy link
Member

@2heal1 2heal1 commented Aug 30, 2024

Description

pass real dirName instead of urlDirName

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Copy link

changeset-bot bot commented Aug 30, 2024

🦋 Changeset detected

Latest commit: f5634c3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 38 packages
Name Type
@module-federation/sdk Patch
@module-federation/devtools Patch
@module-federation/data-prefetch Patch
@module-federation/dts-plugin Patch
@module-federation/enhanced Patch
@module-federation/esbuild Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/modern-js Patch
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/rspack Patch
@module-federation/runtime Patch
@module-federation/utilities Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/bridge-react-webpack-plugin Patch
3008-runtime-remote Patch
host Patch
host-v5 Patch
host-vue3 Patch
remote1 Patch
remote2 Patch
remote3 Patch
remote4 Patch
@module-federation/modernjs Patch
modernjs-ssr-dynamic-nested-remote Patch
modernjs-ssr-dynamic-remote-new-version Patch
modernjs-ssr-dynamic-remote Patch
modernjs-ssr-host Patch
modernjs-ssr-nested-remote Patch
modernjs-ssr-remote-new-version Patch
modernjs-ssr-remote Patch
@module-federation/retry-plugin Patch
@module-federation/runtime-tools Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
@module-federation/bridge-shared Patch

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

Copy link
Contributor

@squadronai squadronai bot left a 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.

Copy link

netlify bot commented Aug 30, 2024

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit f5634c3
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/6705b767534ccc00081ed69b
😎 Deploy Preview https://deploy-preview-2906--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@2heal1 2heal1 changed the title WIP:chore: use real dirName instead of urlDirName chore: use real dirName instead of urlDirName Aug 30, 2024
@@ -108,7 +108,7 @@ export function createScriptNode(
scriptContext.exports,
scriptContext.module,
eval('require'),
urlDirname,
__dirname,
Copy link
Member

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?

Copy link
Contributor

@squadronai squadronai bot left a 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

Copy link
Contributor

@squadronai squadronai bot left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants