File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 44
44
"dependencies" : {
45
45
"cosmiconfig" : " ^7.0.0" ,
46
46
"klona" : " ^2.0.4" ,
47
- "loader-utils" : " ^2.0.0" ,
48
- "schema-utils" : " ^3.0.0" ,
49
47
"semver" : " ^7.3.4"
50
48
},
51
49
"devDependencies" : {
Original file line number Diff line number Diff line change 1
- import { getOptions } from "loader-utils" ;
2
- import { validate } from "schema-utils" ;
3
-
4
1
import postcss from "postcss" ;
5
2
import { satisfies } from "semver" ;
6
3
import postcssPackage from "postcss/package.json" ;
@@ -31,15 +28,8 @@ import {
31
28
*/
32
29
33
30
export default async function loader ( content , sourceMap , meta ) {
34
- const options = getOptions ( this ) ;
35
-
36
- validate ( schema , options , {
37
- name : "PostCSS Loader" ,
38
- baseDataPath : "options" ,
39
- } ) ;
40
-
31
+ const options = this . getOptions ( schema ) ;
41
32
const callback = this . async ( ) ;
42
-
43
33
const configOption =
44
34
typeof options . postcssOptions === "undefined" ||
45
35
typeof options . postcssOptions . config === "undefined"
Original file line number Diff line number Diff line change 1
1
{
2
+ "title" : " PostCSS Loader options" ,
2
3
"type" : " object" ,
3
4
"properties" : {
4
5
"postcssOptions" : {
You can’t perform that action at this time.
0 commit comments