fix(compiler-cli): add `sass` as a valid css preprocessor extension (#35052)
`.sass` is a valid preprocessor extension which is used for Sass indented syntax https://sass-lang.com/documentation/syntax PR Close #35052
This commit is contained in:
parent
58b29f1503
commit
6d11a81994
|
@ -13,7 +13,7 @@ import {ExtendedTsCompilerHost} from '../../core/api';
|
||||||
import {AbsoluteFsPath, PathSegment, join} from '../../file_system';
|
import {AbsoluteFsPath, PathSegment, join} from '../../file_system';
|
||||||
import {getRootDirs} from '../../util/src/typescript';
|
import {getRootDirs} from '../../util/src/typescript';
|
||||||
|
|
||||||
const CSS_PREPROCESSOR_EXT = /(\.scss|\.less|\.styl)$/;
|
const CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* `ResourceLoader` which delegates to a `CompilerHost` resource loading method.
|
* `ResourceLoader` which delegates to a `CompilerHost` resource loading method.
|
||||||
|
|
|
@ -20,7 +20,7 @@ import {DTS, GENERATED_FILES, isInRootDir, relativeToRootDirs} from './util';
|
||||||
|
|
||||||
const NODE_MODULES_PACKAGE_NAME = /node_modules\/((\w|-|\.)+|(@(\w|-|\.)+\/(\w|-|\.)+))/;
|
const NODE_MODULES_PACKAGE_NAME = /node_modules\/((\w|-|\.)+|(@(\w|-|\.)+\/(\w|-|\.)+))/;
|
||||||
const EXT = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;
|
const EXT = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;
|
||||||
const CSS_PREPROCESSOR_EXT = /(\.scss|\.less|\.styl)$/;
|
const CSS_PREPROCESSOR_EXT = /(\.scss|\.sass|\.less|\.styl)$/;
|
||||||
|
|
||||||
let wrapHostForTest: ((host: ts.CompilerHost) => ts.CompilerHost)|null = null;
|
let wrapHostForTest: ((host: ts.CompilerHost) => ts.CompilerHost)|null = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue