gant-core 0.1.12 → 0.1.14
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/lib/cli/index.js +2 -2
- package/lib/cli/index.js.map +1 -1
- package/lib/index.d.ts +15 -2
- package/lib/index.js +74 -51
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -6057,7 +6057,7 @@ class Config {
|
|
|
6057
6057
|
}
|
|
6058
6058
|
|
|
6059
6059
|
const getComponentTempalte = (component) => {
|
|
6060
|
-
return `lazy: async () =>
|
|
6060
|
+
return `lazy: async () =>import('${component}'), loader:async()=> { const Page:any = await import('${component}');return Page.loader||null},`;
|
|
6061
6061
|
};
|
|
6062
6062
|
// 生成路由对象的方法
|
|
6063
6063
|
function generateRouteObject(route) {
|
|
@@ -51294,7 +51294,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
51294
51294
|
};
|
|
51295
51295
|
|
|
51296
51296
|
var name = "gant-core";
|
|
51297
|
-
var version = "0.1.
|
|
51297
|
+
var version = "0.1.14";
|
|
51298
51298
|
var description = "";
|
|
51299
51299
|
var main = "lib/index.js";
|
|
51300
51300
|
var bin = {
|