balm-core 4.7.0 → 4.8.0
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/lib/balm.js
CHANGED
|
@@ -28,12 +28,10 @@ class Balm {
|
|
|
28
28
|
value: void 0
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
BalmJS.loading = false;
|
|
32
|
+
loading.succeed();
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
BalmJS.loading = false;
|
|
35
|
-
loading.succeed();
|
|
36
|
-
}
|
|
34
|
+
_classPrivateFieldSet(this, _config, setConfig({}));
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
get config() {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mergeWithRules, CustomizeRule } from 'webpack-merge';
|
|
2
2
|
import LOADERS from './rules/index.js';
|
|
3
|
-
import fileLoader from './rules/file.js';
|
|
4
3
|
|
|
5
4
|
function getLoaders(customLoaders) {
|
|
6
5
|
const enableDefaultLoaders = Object.assign({
|
|
@@ -46,10 +45,6 @@ function getLoaders(customLoaders) {
|
|
|
46
45
|
module: {
|
|
47
46
|
rules: customLoaders
|
|
48
47
|
}
|
|
49
|
-
}, {
|
|
50
|
-
module: {
|
|
51
|
-
rules: [fileLoader()]
|
|
52
|
-
}
|
|
53
48
|
});
|
|
54
49
|
const defaultModule = result.module;
|
|
55
50
|
BalmJS.logger.debug('webpack loaders', defaultModule.rules, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "balm-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "BalmJS compiler core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"balm",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"css-loader": "^6.7.1",
|
|
51
51
|
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
52
52
|
"cssnano": "^5.1.9",
|
|
53
|
-
"del": "^6.1.
|
|
53
|
+
"del": "^6.1.1",
|
|
54
54
|
"dotenv": "^16.0.1",
|
|
55
55
|
"dotenv-expand": "^8.0.3",
|
|
56
56
|
"esbuild": "^0.14",
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"postcss": "^8.4.14",
|
|
79
79
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
80
80
|
"postcss-import": "^14.1.0",
|
|
81
|
-
"postcss-load-config": "^
|
|
81
|
+
"postcss-load-config": "^4.0.0",
|
|
82
82
|
"postcss-loader": "7.0.0",
|
|
83
83
|
"postcss-preset-env": "^7.6.0",
|
|
84
84
|
"pretty-bytes": "^6.0.0",
|
|
85
85
|
"readable-stream": "^3.6.0",
|
|
86
86
|
"replace-ext": "^2.0.0",
|
|
87
|
-
"rollup": "^2.
|
|
87
|
+
"rollup": "^2.75.0",
|
|
88
88
|
"rollup-plugin-terser": "^7.0.2",
|
|
89
89
|
"sass": "^1.52.1",
|
|
90
90
|
"sass-loader": "^13.0.0",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"engines": {
|
|
121
121
|
"node": ">=14.15.0"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "013f70d21057d05acab46caab883b37bb53a0362"
|
|
124
124
|
}
|
package/tslib/balm.js
CHANGED
|
@@ -9,11 +9,9 @@ import loading from './utilities/loading.js';
|
|
|
9
9
|
class Balm {
|
|
10
10
|
constructor() {
|
|
11
11
|
_Balm_config.set(this, void 0);
|
|
12
|
+
BalmJS.loading = false;
|
|
13
|
+
loading.succeed();
|
|
12
14
|
__classPrivateFieldSet(this, _Balm_config, setConfig({}), "f");
|
|
13
|
-
if (!BalmJS.useCacache) {
|
|
14
|
-
BalmJS.loading = false;
|
|
15
|
-
loading.succeed();
|
|
16
|
-
}
|
|
17
15
|
}
|
|
18
16
|
get config() {
|
|
19
17
|
return __classPrivateFieldGet(this, _Balm_config, "f");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { mergeWithRules, CustomizeRule } from 'webpack-merge';
|
|
2
2
|
import LOADERS from './rules/index.js';
|
|
3
|
-
import fileLoader from './rules/file.js';
|
|
4
3
|
function getLoaders(customLoaders) {
|
|
5
4
|
const enableDefaultLoaders = Object.assign({
|
|
6
5
|
js: true,
|
|
@@ -42,10 +41,6 @@ function getLoaders(customLoaders) {
|
|
|
42
41
|
module: {
|
|
43
42
|
rules: customLoaders
|
|
44
43
|
}
|
|
45
|
-
}, {
|
|
46
|
-
module: {
|
|
47
|
-
rules: [fileLoader()]
|
|
48
|
-
}
|
|
49
44
|
});
|
|
50
45
|
const defaultModule = result.module;
|
|
51
46
|
BalmJS.logger.debug('webpack loaders', defaultModule.rules, {
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsRegex, htmlRegex } from '../config/regex.js';
|
|
2
|
-
|
|
3
|
-
function fileLoader() {
|
|
4
|
-
// "file" loader makes sure those assets get served by WebpackDevServer.
|
|
5
|
-
// When you `import` an asset, you get its (virtual) filename.
|
|
6
|
-
// In production, they would get copied to the `build` folder.
|
|
7
|
-
// This loader doesn't use a "test" so it will catch all modules
|
|
8
|
-
// that fall through the other loaders.
|
|
9
|
-
return {
|
|
10
|
-
// Exclude `js` files to keep "css" loader working as it injects
|
|
11
|
-
// its runtime that would otherwise be processed through "file" loader.
|
|
12
|
-
// Also exclude `html` and `json` extensions so they get processed
|
|
13
|
-
// by webpacks internal loaders.
|
|
14
|
-
exclude: [/^$/, jsRegex, htmlRegex, /\.json$/],
|
|
15
|
-
type: 'asset/resource'
|
|
16
|
-
}; // ** STOP ** Are you adding a new loader?
|
|
17
|
-
// Make sure to add the new loader(s) before the "file" loader.
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default fileLoader;
|