@taro-minify-pack/preset 0.1.3-alpha.0 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -141,11 +141,15 @@ module.exports = {
141
141
  dynamicPackageCount: 1,
142
142
  // 自定义异步分包
143
143
  customDynamicPackages: [
144
- {
145
- name: 'report',
146
- test: (module) => /src[\\/]pages[\\/]report[\\/]/.test(module.resource || ''),
147
- asyncStyle: true
148
- }
144
+ {
145
+ name: 'sync-style',
146
+ test: (module) => /src[\\/]pages[\\/]sync-style[\\/]/.test(module.identifier()),
147
+ },
148
+ {
149
+ name: 'async-style',
150
+ test: (module) => /src[\\/]pages[\\/]async-style[\\/]/.test(module.identifier()),
151
+ asyncStyle: true
152
+ }
149
153
  ]
150
154
  },
151
155
  // 自动设置 browserslist 配置
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taro-minify-pack/preset",
3
- "version": "0.1.3-alpha.0",
3
+ "version": "0.1.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,10 +15,10 @@
15
15
  "author": "yu.pan",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@taro-minify-pack/plugin-async-pack": "0.1.3-alpha.0",
19
- "@taro-minify-pack/plugin-bundle-analyzer": "0.1.3-alpha.0",
20
- "@taro-minify-pack/plugin-remote-assets": "0.1.3-alpha.0",
21
- "@taro-minify-pack/plugin-cover-browserslist": "0.1.3-alpha.0"
18
+ "@taro-minify-pack/plugin-async-pack": "0.1.3",
19
+ "@taro-minify-pack/plugin-bundle-analyzer": "0.1.3",
20
+ "@taro-minify-pack/plugin-remote-assets": "0.1.3",
21
+ "@taro-minify-pack/plugin-cover-browserslist": "0.1.3"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^18.19.130",