gucong3000 / postcss-syntax

Automatically switch PostCSS syntax based on file extensions
MIT License
45 stars 7 forks source link

Recognise .cjs files as containing jsx #45

Closed BPScott closed 4 years ago

BPScott commented 4 years ago

.cjs is a new extension that node uses that explicitly forces it to use commonjs modules (compared to mjs which forces the use of ecmascript modules). Previously .cjs files weren't recognised as containing JSX

This should fix https://github.com/stylelint/vscode-stylelint/issues/34.

I'm not sure what the "extensions" list in package.json is for but it mentioned mjs so I'm adding a mention of cjs there too.

codecov[bot] commented 4 years ago

Codecov Report

Merging #45 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #45   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          13     13           
  Lines         283    283           
=====================================
  Hits          283    283
Impacted Files Coverage Δ
get-lang.js 100% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5842fb9...6376960. Read the comment docs.