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

Can not exclude other tsx files #658

Closed
cschroeter opened this issue Feb 12, 2020 · 2 comments
Closed

Can not exclude other tsx files #658

cschroeter opened this issue Feb 12, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@cschroeter
Copy link

Describe the bug
swc failes to compiles my source code with the given regex to exclude spec files. I've double checked that the regex is correct on https://rustexp.lpil.uk/

Input code
$ swc --sync -s true src/ -d dist/
Error: unmatched

Config

{
  "test": ".*.tsx$",
  "exclude": ".*.spec.tsx$",
  "jsc": {
    "target": "es2018",
    "parser": {
      "syntax": "typescript",
      "tsx": true
    }
  }
}

Expected behavior
I would expect that the compile transpiles everything that is not a test file

Version
The version of @swc/core: 1.1.20

@kdy1 kdy1 self-assigned this Feb 12, 2020
@kdy1 kdy1 added this to the v1.1.21 milestone Feb 12, 2020
kdy1 added a commit to kdy1/swc that referenced this issue Feb 12, 2020
kdy1 added a commit to kdy1/swc that referenced this issue Feb 12, 2020
@bors bors bot closed this as completed in 82e73b1 Feb 12, 2020
@kdy1 kdy1 reopened this Feb 12, 2020
@kdy1
Copy link
Member

kdy1 commented Feb 13, 2020

Fixed and published new version of swc/core and swc/cli

@swc-bot
Copy link
Collaborator

swc-bot commented Oct 28, 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 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants