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

set AMD module id from cli #522

Closed
leafo opened this issue Dec 22, 2019 · 3 comments
Closed

set AMD module id from cli #522

leafo opened this issue Dec 22, 2019 · 3 comments
Assignees
Milestone

Comments

@leafo
Copy link

leafo commented Dec 22, 2019

There doesn't appear to be a way to individually set the moduleId when compiling an AMD module using the command line tool. It is possible to set the the moduleId in the config file, but that would be reused across all modules compiled with that project's config.

Potential solutions:

  • Add a --module-id=hello CLI argument to set it
  • Add a way to override config values from CLI, something like --config module.moduleId=hello
@kdy1 kdy1 self-assigned this Dec 22, 2019
@kdy1
Copy link
Member

kdy1 commented Dec 22, 2019

Fixed with @swc/cli@0.1.20

@kdy1 kdy1 added this to the v1.1.8 milestone Dec 22, 2019
@leafo
Copy link
Author

leafo commented Dec 22, 2019

Wow, that was fast. Thanks for adding it, will test it out soon

@swc-bot
Copy link
Collaborator

swc-bot commented Oct 29, 2022

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants