vscode-language-babel icon indicating copy to clipboard operation
vscode-language-babel copied to clipboard

`import.meta` breaks syntax highlighting inside jsx

Open selrond opened this issue 4 years ago • 2 comments

  • 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

selrond avatar May 03 '21 18:05 selrond

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

michaelgmcd avatar May 08 '21 21:05 michaelgmcd

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

selrond avatar May 10 '21 07:05 selrond