weapp-vite 1.1.4 → 1.1.5

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.
@@ -466,6 +466,10 @@ function vitePluginWeapp(ctx) {
466
466
  }
467
467
  }
468
468
  },
469
+ // for debug
470
+ // watchChange(id, change) {
471
+ // console.log(id, change)
472
+ // },
469
473
  generateBundle(_options, bundle) {
470
474
  const bundleKeys = Object.keys(bundle);
471
475
  for (const bundleKey of bundleKeys) {
@@ -705,6 +709,9 @@ var CompilerContext = class _CompilerContext {
705
709
  commonjsOptions: {
706
710
  transformMixedEsModules: true,
707
711
  include: void 0
712
+ },
713
+ watch: {
714
+ exclude: ["node_modules/**", this.mpDistRoot ? path5.join(this.mpDistRoot, "**") : "dist/**"]
708
715
  }
709
716
  },
710
717
  plugins: [
package/dist/cli.cjs CHANGED
@@ -29,7 +29,7 @@ var import_cac = require("cac");
29
29
  var import_weapp_ide_cli = require("weapp-ide-cli");
30
30
 
31
31
  // package.json
32
- var version = "1.1.4";
32
+ var version = "1.1.5";
33
33
 
34
34
  // src/constants.ts
35
35
  var VERSION = version;
@@ -502,6 +502,10 @@ function vitePluginWeapp(ctx) {
502
502
  }
503
503
  }
504
504
  },
505
+ // for debug
506
+ // watchChange(id, change) {
507
+ // console.log(id, change)
508
+ // },
505
509
  generateBundle(_options, bundle) {
506
510
  const bundleKeys = Object.keys(bundle);
507
511
  for (const bundleKey of bundleKeys) {
@@ -741,6 +745,9 @@ var CompilerContext = class _CompilerContext {
741
745
  commonjsOptions: {
742
746
  transformMixedEsModules: true,
743
747
  include: void 0
748
+ },
749
+ watch: {
750
+ exclude: ["node_modules/**", this.mpDistRoot ? import_pathe5.default.join(this.mpDistRoot, "**") : "dist/**"]
744
751
  }
745
752
  },
746
753
  plugins: [
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CompilerContext
3
- } from "./chunk-NPLMSNBG.mjs";
3
+ } from "./chunk-W7SB43KF.mjs";
4
4
  import "./chunk-444MQSSG.mjs";
5
5
 
6
6
  // src/cli.ts
@@ -10,7 +10,7 @@ import { cac } from "cac";
10
10
  import { parse } from "weapp-ide-cli";
11
11
 
12
12
  // package.json
13
- var version = "1.1.4";
13
+ var version = "1.1.5";
14
14
 
15
15
  // src/constants.ts
16
16
  var VERSION = version;
package/dist/index.cjs CHANGED
@@ -502,6 +502,10 @@ function vitePluginWeapp(ctx) {
502
502
  }
503
503
  }
504
504
  },
505
+ // for debug
506
+ // watchChange(id, change) {
507
+ // console.log(id, change)
508
+ // },
505
509
  generateBundle(_options, bundle) {
506
510
  const bundleKeys = Object.keys(bundle);
507
511
  for (const bundleKey of bundleKeys) {
@@ -741,6 +745,9 @@ var CompilerContext = class _CompilerContext {
741
745
  commonjsOptions: {
742
746
  transformMixedEsModules: true,
743
747
  include: void 0
748
+ },
749
+ watch: {
750
+ exclude: ["node_modules/**", this.mpDistRoot ? import_pathe5.default.join(this.mpDistRoot, "**") : "dist/**"]
744
751
  }
745
752
  },
746
753
  plugins: [
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CompilerContext
3
- } from "./chunk-NPLMSNBG.mjs";
3
+ } from "./chunk-W7SB43KF.mjs";
4
4
  import "./chunk-444MQSSG.mjs";
5
5
  export {
6
6
  CompilerContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -64,9 +64,9 @@
64
64
  "pkg-types": "^1.2.0",
65
65
  "vite-tsconfig-paths": "^5.0.1",
66
66
  "@weapp-core/init": "^1.0.4",
67
- "weapp-ide-cli": "^2.0.5",
68
67
  "@weapp-core/logger": "^1.0.1",
69
- "@weapp-core/shared": "^1.0.1"
68
+ "@weapp-core/shared": "^1.0.1",
69
+ "weapp-ide-cli": "^2.0.5"
70
70
  },
71
71
  "publishConfig": {
72
72
  "access": "public",