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

The extension system should automatically install the extension's dependencies #16896

Open
smallmain opened this issue Apr 14, 2024 · 2 comments
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@smallmain
Copy link

smallmain commented Apr 14, 2024

Cocos Creator version

3.8.2

System information

MacOS

Issue description

  • Put node_modules into the package to make the package body very large.
  • It is recommended that developers use bundling tools to bundle code, which will increase the complexity of development.
  • Bundling tools do not work well with native dependencies, which generally install specific implementations based on the platform. (e.g. @parcel/watcher)

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

@smallmain smallmain added Bug Needs Triage Needs to be assigned by the team labels Apr 14, 2024
@minggo
Copy link
Contributor

minggo commented Apr 15, 2024

Sorry, i don't quite understand the issue.

@smallmain
Copy link
Author

Sorry, i don't quite understand the issue.

extension package.json content:

{
  "dependencies": {
    "@parcel/watcher": "^2.4.1",
    "comlink": "^4.4.1",
    "comment-json": "^4.2.3",
}

Now it is generally handled like this:

  • Put node_modules into the package to make the package body very large.
  • Use bundling tools to bundle code.

But no matter which method is used, there will be the problem I described. I hope that Creator will automatically install dependencies when installing the extension, instead of bundling the code or placing node_modules in the extension directory for uploading..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants