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

import.meta breaks syntax highlighting inside jsx #85

Open
selrond opened this issue May 3, 2021 · 2 comments
Open

import.meta breaks syntax highlighting inside jsx #85

selrond opened this issue May 3, 2021 · 2 comments

Comments

@selrond
Copy link

selrond commented May 3, 2021

  • VS Code Version: 1.55.2
  • OS Version: 10.15.7

Steps to Reproduce:

  1. Create a React component:

    const Sample = () => {
      return import.meta.env.DEV && <div>whatever</div>
    }
  2. Watch syntax highlighting break:

    screencap-Code--2021-05-03--20-48-14

Works as expected with vscode-language-babel disabled:

image

@michaelgmcd
Copy link
Owner

Very busy at the moment, but hopefully I can take a look this week. Would love a PR!

@selrond
Copy link
Author

selrond commented May 10, 2021

No stress, I've actually uninstalled vscode-language-babel as I realized most (all?) of it is already included in VSCode by default (I'm working inside javascriptreact / typescriptreact VSCode syntaxes most of the time).

Just wanted to share what I found out

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

No branches or pull requests

2 participants