lvyjs 0.2.9 → 0.2.10

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/lib/index.js +2 -7
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -47,18 +47,13 @@ const onBuild = async () => {
47
47
  await apps.push(plugin(global.lvyConfig));
48
48
  }
49
49
  }
50
- // 执行loader
51
- await import('./main.js');
52
50
  //
53
51
  for (const app of apps) {
54
52
  if (!app) {
55
53
  continue;
56
54
  }
57
- if (typeof app == 'function') {
58
- await app(global.lvyConfig);
59
- }
60
- else if (typeof app.build == 'function') {
61
- app.build(global.lvyConfig);
55
+ if (typeof app != 'function' && typeof app.build == 'function') {
56
+ await app.build(global.lvyConfig);
62
57
  }
63
58
  }
64
59
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lvyjs",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "tsx compile script",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",