@lipemat/js-boilerplate 10.7.0 → 10.7.1
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.
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import type {TransformOptions} from '@babel/core';
|
|
3
|
-
import type {Options} from '@babel/preset-env';
|
|
1
|
+
const {getBrowsersList} = require( '../helpers/config' );
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
|
-
* @
|
|
4
|
+
* @notice This file must NOT be a TS file because it is used
|
|
5
|
+
* as part of the JEST configuration.
|
|
7
6
|
*/
|
|
8
|
-
export type BabelLoader = {
|
|
9
|
-
cacheDirectory?: boolean | string;
|
|
10
|
-
cacheIdentifier?: string;
|
|
11
|
-
cacheCompression?: boolean;
|
|
12
|
-
customize?: string;
|
|
13
|
-
metadataSubscribers?: string[];
|
|
14
|
-
}
|
|
15
7
|
|
|
16
8
|
/**
|
|
17
9
|
* Use Babel's preset-env to add support for target browsers.
|
|
@@ -20,7 +12,7 @@ export type BabelLoader = {
|
|
|
20
12
|
*
|
|
21
13
|
* @see https://babeljs.io/docs/en/babel-preset-env
|
|
22
14
|
*/
|
|
23
|
-
const presetEnv
|
|
15
|
+
const presetEnv = {
|
|
24
16
|
bugfixes: true,
|
|
25
17
|
corejs: {
|
|
26
18
|
// Use the core-js version currently installed in the project.
|
|
@@ -39,7 +31,7 @@ const presetEnv: Options = {
|
|
|
39
31
|
};
|
|
40
32
|
|
|
41
33
|
|
|
42
|
-
|
|
34
|
+
module.exports = {
|
|
43
35
|
cacheDirectory: true,
|
|
44
36
|
presets: [
|
|
45
37
|
[ '@babel/preset-env', presetEnv ],
|
|
@@ -53,5 +45,3 @@ const babelConfig: TransformOptions & BabelLoader = {
|
|
|
53
45
|
'@babel/plugin-syntax-dynamic-import',
|
|
54
46
|
],
|
|
55
47
|
};
|
|
56
|
-
|
|
57
|
-
module.exports = babelConfig;
|
package/lib/postcss-pretty.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
import {Container, Root} from 'postcss';
|
|
13
|
-
import {ChildNode} from 'postcss/lib/node';
|
|
14
|
-
import {AtRuleRaws} from 'postcss/lib/at-rule';
|
|
13
|
+
import type {ChildNode} from 'postcss/lib/node';
|
|
14
|
+
import type {AtRuleRaws} from 'postcss/lib/at-rule';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Get the depth of the current node.
|