mp-weixin-back 0.0.10 → 0.0.11

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/dist/index.cjs CHANGED
@@ -444,7 +444,10 @@ function MpBackPlugin(userOptions = {}) {
444
444
  if (id.includes("node_modules") || !id.includes(".vue")) {
445
445
  return;
446
446
  }
447
- return context.transform(code, id);
447
+ return {
448
+ code: await context.transform(code, id),
449
+ map: null
450
+ };
448
451
  }
449
452
  };
450
453
  }
package/dist/index.mjs CHANGED
@@ -434,7 +434,10 @@ function MpBackPlugin(userOptions = {}) {
434
434
  if (id.includes("node_modules") || !id.includes(".vue")) {
435
435
  return;
436
436
  }
437
- return context.transform(code, id);
437
+ return {
438
+ code: await context.transform(code, id),
439
+ map: null
440
+ };
438
441
  }
439
442
  };
440
443
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mp-weixin-back",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.11",
5
5
  "description": "监听微信小程序的手势返回和页面默认导航栏的返回",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
package/src/index.ts CHANGED
@@ -40,7 +40,11 @@ function MpBackPlugin(userOptions: UserOptions = {}): Plugin {
40
40
  if (id.includes('node_modules') || !id.includes('.vue')) {
41
41
  return
42
42
  }
43
- return context.transform(code, id)
43
+
44
+ return {
45
+ code: await context.transform(code, id),
46
+ map: null,
47
+ }
44
48
  },
45
49
  } as Plugin
46
50
  }