@dcloudio/uni-cli-shared 3.0.0-alpha-3030020211129001 → 3.0.0-alpha-3030020211130002

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.
@@ -42,6 +42,8 @@ function uniViteInjectPlugin(options) {
42
42
  const callback = options.callback;
43
43
  return {
44
44
  name: 'vite:uni-inject',
45
+ // 确保在 commonjs 之后,否则会混合 es6 module 与 cjs 的代码,导致 commonjs 失效
46
+ enforce: 'post',
45
47
  transform(code, id) {
46
48
  if (!filter(id))
47
49
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3030020211129001",
3
+ "version": "3.0.0-alpha-3030020211130002",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@babel/parser": "^7.15.0",
22
22
  "@babel/types": "^7.15.0",
23
- "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211129001",
24
- "@dcloudio/uni-shared": "3.0.0-alpha-3030020211129001",
23
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3030020211130002",
24
+ "@dcloudio/uni-shared": "3.0.0-alpha-3030020211130002",
25
25
  "@rollup/pluginutils": "^4.1.1",
26
26
  "@vue/compiler-core": "3.2.23",
27
27
  "@vue/compiler-dom": "3.2.23",