File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ module.exports = {
21
21
processOptions,
22
22
source : 'basic.scss' ,
23
23
} ,
24
- 'basic:mixed' : {
25
- message : 'supports mixed (postcss-unroot, postcss-sass) usage' ,
26
- plugin : require ( 'postcss' ) ( [
27
- // In the previous test, unroot wouldn't do anything.
28
- // I'm pretty sure that is a bug, so I changed the expected css file
29
- require ( 'postcss-unroot' ) ,
30
- require ( '.' ) ,
31
- ] ) ,
32
- processOptions,
33
- source : 'basic.scss' ,
34
- } ,
35
24
'imports' : {
36
25
message : 'supports imports usage' ,
37
26
plugin : require ( 'postcss' ) (
Original file line number Diff line number Diff line change 38
38
"source-map" : " ~0.7.3"
39
39
},
40
40
"peerDependencies" : {
41
- "postcss" : " ^8.2.4 "
41
+ "postcss" : " ^8.4.6 "
42
42
},
43
43
"devDependencies" : {
44
44
"@babel/core" : " ^7.17.2" ,
48
48
"echint" : " ^4.0.2" ,
49
49
"eslint" : " ^8.9.0" ,
50
50
"eslint-config-dev" : " 2.0.0" ,
51
+ "postcss" : " ^8.4.6" ,
51
52
"postcss-import" : " ^14.0.2" ,
52
53
"postcss-scss" : " ^4.0.3" ,
53
54
"postcss-tape" : " 6.0.1" ,
54
- "postcss-unroot" : " ^1.0.2" ,
55
- "pre-commit" : " ^1.2.2" ,
56
55
"rollup" : " ^2.67.2"
57
56
},
58
57
"eslintConfig" : {
92
91
"root" : true
93
92
},
94
93
"postcssConfig" : {
95
- "config" : " .tape.js"
94
+ "config" : " .tape.js" ,
95
+ "plugin" : " ./dist/index.cjs"
96
96
},
97
97
"keywords" : [
98
98
" postcss" ,
Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ const plugin = (opts = {}) => {
89
89
data : postCSS ,
90
90
importer ( id , parentId , done ) {
91
91
const doneWrap = ( importerResult ) => {
92
- const file =
93
- importerResult && importerResult . file ;
92
+ const file = importerResult && importerResult . file ;
93
+
94
94
if ( file ) {
95
95
const parent = pathResolve ( parentId ) ;
96
96
You can’t perform that action at this time.
0 commit comments