Skip to content

Conversation

@Timeless0911
Copy link
Contributor

Summary

Add "type": "module" to package.json in examples. This makes native loader load configuration files without warning.

image

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 4, 2025 08:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds "type": "module" to package.json files across multiple example packages, standardizing them to use ES modules as the default module system. All example packages in the repository now explicitly declare their module type.

  • Adds "type": "module" field to 8 example packages
  • Ensures consistency across all example packages that already had this field
  • Aligns package configuration with modern Node.js and TypeScript practices

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
examples/react-component-umd/package.json Added module type declaration to UMD React component example
examples/react-component-bundle/package.json Added module type declaration to bundled React component example
examples/react-component-bundle-false/package.json Added module type declaration to bundleless React component example
examples/preact-component-bundle-false/package.json Added module type declaration to bundleless Preact component example
examples/module-federation/mf-remote/package.json Added module type declaration to module federation remote example
examples/module-federation/mf-react-component/package.json Added module type declaration to module federation React component example
examples/module-federation/mf-host/package.json Added module type declaration to module federation host example
examples/express-plugin/package.json Added module type declaration to Express plugin example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Timeless0911 Timeless0911 merged commit a186add into main Nov 4, 2025
16 checks passed
@Timeless0911 Timeless0911 deleted the typemodule branch November 4, 2025 08:42
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.

3 participants