Skip to content

Commit 91fb37c

Browse files
RobinMalfaitdepfu[bot]
authored andcommitted
adjust Lightning CSS API
1 parent 20856ed commit 91fb37c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/cli/build/plugin.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,12 @@ async function lightningcss(result, { map = true, minify = true } = {}) {
4545
sourceMap: result.map === undefined ? map : !!result.map,
4646
inputSourceMap: result.map ? result.map.toString() : undefined,
4747
targets: lightning.browserslistToTargets(browserslist(browsersListConfig)),
48-
drafts: {
49-
nesting: true,
50-
},
5148
include: Features.Nesting,
5249
exclude: Features.LogicalProperties,
5350
})
5451

5552
return Object.assign(result, {
56-
css: transformed.code.toString('utf8'),
53+
css: transformed.code.toString(),
5754
map: result.map
5855
? Object.assign(result.map, {
5956
toString() {

src/plugin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ module.exports = function tailwindcss(configOrPath) {
6767
sourceMap: !!intermediateMap,
6868
targets: lightningcss.browserslistToTargets(browserslist(browsersListConfig)),
6969
drafts: {
70-
nesting: true,
7170
customMedia: true,
7271
},
7372
nonStandard: {

0 commit comments

Comments
 (0)