Skip to content

feat: support bundle node_modules in node environment#394

Merged
9aoy merged 3 commits intomainfrom
external-false
Jul 17, 2025
Merged

feat: support bundle node_modules in node environment#394
9aoy merged 3 commits intomainfrom
external-false

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Jul 16, 2025

Summary

In the Node.js test environment, all packages in node_modules are externalized by default.

If you want all dependencies to be bundled, you can configure it through the following configuration:

import { defineConfig } from '@rstest/core';

export default defineConfig({
  tools: {
    rspack: (config) => {
      config.externals = [];
    },
  },
});

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 16, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 66ae724
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/6877663661630c0007300830
😎 Deploy Preview https://deploy-preview-394--rstest-dev.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 project configuration.

@9aoy 9aoy merged commit ade7282 into main Jul 17, 2025
16 checks passed
@9aoy 9aoy deleted the external-false branch July 17, 2025 06:45
@9aoy 9aoy mentioned this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant