michaelgmcd / vscode-language-babel

VSCode syntax highlighting for today's JavaScript
https://marketplace.visualstudio.com/items?itemName=mgmcdermott.vscode-language-babel
MIT License
131 stars 17 forks source link

`import.meta` breaks syntax highlighting inside jsx #85

Open selrond opened 3 years ago

selrond commented 3 years ago

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 commented 3 years ago

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

selrond commented 3 years ago

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