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 4444 "dependencies" : {
4545 "cosmiconfig" : " ^7.0.0" ,
4646 "klona" : " ^2.0.4" ,
47- "loader-utils" : " ^2.0.0" ,
48- "schema-utils" : " ^3.0.0" ,
4947 "semver" : " ^7.3.4"
5048 },
5149 "devDependencies" : {
Original file line number Diff line number Diff line change 1- import { getOptions } from "loader-utils" ;
2- import { validate } from "schema-utils" ;
3-
41import postcss from "postcss" ;
52import { satisfies } from "semver" ;
63import postcssPackage from "postcss/package.json" ;
@@ -31,15 +28,8 @@ import {
3128 */
3229
3330export 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 ) ;
4132 const callback = this . async ( ) ;
42-
4333 const configOption =
4434 typeof options . postcssOptions === "undefined" ||
4535 typeof options . postcssOptions . config === "undefined"
Original file line number Diff line number Diff line change 11{
2+ "title" : " PostCSS Loader options" ,
23 "type" : " object" ,
34 "properties" : {
45 "postcssOptions" : {
You can’t perform that action at this time.
0 commit comments