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

V2: Improve plugin option import_extension #909

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

timostamm
Copy link
Member

The plugin option import_extension needs to be specified with a leading dot, for example import_extension=.js, while the option target does not.

This PR changes the behavior to accept both js and .js for backwards compatibility, and updates documentation and examples to use js.

With this change, arbitrary values for import_extension are no longer accepted and raise an error in the plugin. I can't think of a use case for values other than the accepted none, js, and ts, but it should be trivial to add support for other values later if necessary.

@timostamm timostamm merged commit 5a8cedf into v2 Jun 28, 2024
18 checks passed
@timostamm timostamm deleted the tstamm/update-import_extension branch June 28, 2024 13:06
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.

None yet

2 participants