glass-easel-miniprogram-webpack-plugin 0.10.3 → 0.11.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 +1 -1
- package/index.ts +1 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -433,7 +433,7 @@ class GlassEaselMiniprogramWebpackPlugin {
|
|
|
433
433
|
if (m.type !== 'javascript/auto')
|
|
434
434
|
continue;
|
|
435
435
|
const module = m;
|
|
436
|
-
if (module.resource ===
|
|
436
|
+
if (module.resource === path.join(codeRoot, 'index.js')) {
|
|
437
437
|
indexModule = module;
|
|
438
438
|
continue;
|
|
439
439
|
}
|
package/index.ts
CHANGED
|
@@ -483,7 +483,7 @@ export class GlassEaselMiniprogramWebpackPlugin implements WebpackPluginInstance
|
|
|
483
483
|
for (const m of modules) {
|
|
484
484
|
if (m.type !== 'javascript/auto') continue
|
|
485
485
|
const module = m as NormalModule
|
|
486
|
-
if (module.resource ===
|
|
486
|
+
if (module.resource === path.join(codeRoot, 'index.js')) {
|
|
487
487
|
indexModule = module
|
|
488
488
|
continue
|
|
489
489
|
}
|
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.11.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.11.0",
|
|
22
|
+
"glass-easel-miniprogram-adapter": "0.11.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-template-compiler": "0.11.0",
|
|
31
|
+
"glass-easel-stylesheet-compiler": "0.11.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "tsc -p .",
|