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

Support for css modules #578

Open
baracuda69 opened this issue Mar 2, 2022 · 0 comments
Open

Support for css modules #578

baracuda69 opened this issue Mar 2, 2022 · 0 comments

Comments

@baracuda69
Copy link

Installed product versions

  • Visual Studio: 2022 Community
  • This extension: 2.9.3

Description

Please support minification of JS to include css modules.
For example:
import sheet from './styles.css' assert { type: 'css' };

Steps to recreate

Add the following to JS-file:

import sheet from './styles.css' assert { type: 'css' };

Current behavior

Visual Studio editor highlights the word assert with squiggly green line;
Hover over that to get error code: TS1005 (JS): ';' expected.

Error List shows the following error
(Bundler & Minifier) Expected ';'

JS file is NOT minified (as a result of the above supposed syntax error).

Expected behavior

  1. The editor should not highlight "assert" (it should not see it as a syntax error).
  2. More importantly, the minifier should minify the JS-file.
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

1 participant