glass-easel-miniprogram-webpack-plugin 0.8.2 → 0.9.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/index.js +0 -1
- package/index.ts +0 -1
- package/package.json +5 -5
- package/wxss_loader.js +2 -2
package/index.js
CHANGED
package/index.ts
CHANGED
|
@@ -429,7 +429,6 @@ export class GlassEaselMiniprogramWebpackPlugin implements WebpackPluginInstance
|
|
|
429
429
|
} else {
|
|
430
430
|
x.options = {
|
|
431
431
|
classPrefix: styleSheetManager.getScopeName(compPath),
|
|
432
|
-
compPath,
|
|
433
432
|
setLowPriorityStyles: (s: string, map: string) => {
|
|
434
433
|
styleSheetManager.setLowPriorityStyles(compPath, s, map)
|
|
435
434
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glass-easel-miniprogram-webpack-plugin",
|
|
3
3
|
"description": "The webpack plugin of the glass-easel project for MiniProgram file structure",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/wechat-miniprogram/glass-easel.git"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"webpack": "^5.85.0",
|
|
21
|
-
"glass-easel": "0.
|
|
22
|
-
"glass-easel-miniprogram-adapter": "0.
|
|
21
|
+
"glass-easel": "0.9.0",
|
|
22
|
+
"glass-easel-miniprogram-adapter": "0.9.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"chalk": "4",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"source-map": "^0.7.4",
|
|
28
28
|
"webpack-sources": "^3.2.1",
|
|
29
29
|
"webpack-virtual-modules": "^0.5.0",
|
|
30
|
-
"glass-easel-
|
|
31
|
-
"glass-easel-
|
|
30
|
+
"glass-easel-stylesheet-compiler": "0.9.0",
|
|
31
|
+
"glass-easel-template-compiler": "0.9.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsc -p .",
|
package/wxss_loader.js
CHANGED
|
@@ -6,8 +6,8 @@ const { StyleSheetTransformer } = require('glass-easel-stylesheet-compiler')
|
|
|
6
6
|
|
|
7
7
|
module.exports = function (src, prevMap, meta) {
|
|
8
8
|
const callback = this.async()
|
|
9
|
-
const { classPrefix,
|
|
10
|
-
const sst = new StyleSheetTransformer(this.resourcePath, src, classPrefix, 750,
|
|
9
|
+
const { classPrefix, setLowPriorityStyles } = this.query
|
|
10
|
+
const sst = new StyleSheetTransformer(this.resourcePath, src, classPrefix, 750, true)
|
|
11
11
|
setLowPriorityStyles(sst.getLowPriorityContent(), sst.getLowPrioritySourceMap())
|
|
12
12
|
const warnings = sst.extractWarnings()
|
|
13
13
|
if (warnings && warnings.length > 0) {
|