hw-weapp-compiler 1.0.2 → 1.0.4
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/build/loader/wxs-loader.js +1 -1
- package/build/prod.js +3 -1
- package/build/utils/buildEnv.js +1 -0
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ module.exports = async function loader(source) {
|
|
|
14
14
|
const content = source.toString();
|
|
15
15
|
const fileInfo = path.parse(filePath);
|
|
16
16
|
|
|
17
|
-
const requires = content.match(/require\(("|')
|
|
17
|
+
const requires = content.match(/require\(("|').*?("|')\)/g) || [];
|
|
18
18
|
|
|
19
19
|
await Promise.all(
|
|
20
20
|
requires.map(async (item) => {
|
package/build/prod.js
CHANGED
package/build/utils/buildEnv.js
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hw-weapp-compiler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "基于 webpack5 的小程序构建工具,兼容 Node.js 14~24",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"weapp": "index.js"
|
|
7
|
+
"hw-weapp": "index.js"
|
|
8
8
|
},
|
|
9
9
|
"author": "go1024",
|
|
10
10
|
"license": "ISC",
|