@lwc/style-compiler 2.2.9-alpha.2 → 2.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lwc/style-compiler",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12",
|
|
4
4
|
"description": "Transform style sheet to be consumed by the LWC engine",
|
|
5
5
|
"homepage": "https://lwc.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "23e7740259c45e803a58851bfd39ed074078b1e1"
|
|
33
33
|
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
/*
|
|
7
|
-
* Copyright (c) 2018, salesforce.com, inc.
|
|
8
|
-
* All rights reserved.
|
|
9
|
-
* SPDX-License-Identifier: MIT
|
|
10
|
-
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
|
|
11
|
-
*/
|
|
12
|
-
const cssnano_preset_default_1 = __importDefault(require("cssnano-preset-default"));
|
|
13
|
-
const CSS_NANO_PRESET_OPTIONS = {
|
|
14
|
-
svgo: {
|
|
15
|
-
// The svgo plugin is async and need to be excluded.
|
|
16
|
-
exclude: true,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* cssnano decided to make its APIs asynchronous with v4. Because the LWC compiler transform API is
|
|
21
|
-
* synchronous we can't use cssnano directly. For now we use the css-nano-preset-default and filter
|
|
22
|
-
* out the plugins that are async.
|
|
23
|
-
* https://github.com/cssnano/cssnano/blob/master/packages/cssnano-preset-default/src/index.js
|
|
24
|
-
*
|
|
25
|
-
* We may switch back to cssnano if/when they decide to go back to a synchronous API:
|
|
26
|
-
* https://github.com/cssnano/cssnano/issues/68
|
|
27
|
-
*/
|
|
28
|
-
function default_1() {
|
|
29
|
-
const { plugins } = cssnano_preset_default_1.default(CSS_NANO_PRESET_OPTIONS);
|
|
30
|
-
return plugins
|
|
31
|
-
.filter(([_, options]) => !options || !options.exclude)
|
|
32
|
-
.map(([plugin, options]) => plugin(options));
|
|
33
|
-
}
|
|
34
|
-
exports.default = default_1;
|
|
35
|
-
//# sourceMappingURL=postcss-minify-plugins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postcss-minify-plugins.js","sourceRoot":"","sources":["../../src/postcss-minify-plugins.ts"],"names":[],"mappings":";;;;;AAAA;;;;;GAKG;AACH,oFAAmD;AAEnD,MAAM,uBAAuB,GAAG;IAC5B,IAAI,EAAE;QACF,oDAAoD;QACpD,OAAO,EAAE,IAAI;KAChB;CACJ,CAAC;AAEF;;;;;;;;GAQG;AACH;IACI,MAAM,EAAE,OAAO,EAAE,GAAG,gCAAa,CAAC,uBAAuB,CAAC,CAAC;IAE3D,OAAO,OAAO;SACT,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;SACtD,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AACrD,CAAC;AAND,4BAMC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* cssnano decided to make its APIs asynchronous with v4. Because the LWC compiler transform API is
|
|
3
|
-
* synchronous we can't use cssnano directly. For now we use the css-nano-preset-default and filter
|
|
4
|
-
* out the plugins that are async.
|
|
5
|
-
* https://github.com/cssnano/cssnano/blob/master/packages/cssnano-preset-default/src/index.js
|
|
6
|
-
*
|
|
7
|
-
* We may switch back to cssnano if/when they decide to go back to a synchronous API:
|
|
8
|
-
* https://github.com/cssnano/cssnano/issues/68
|
|
9
|
-
*/
|
|
10
|
-
export default function (): import("postcss").Transformer[];
|