@weapp-core/init 1.1.10 → 1.1.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
|
@@ -40,7 +40,7 @@ __export(src_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(src_exports);
|
|
42
42
|
|
|
43
|
-
// ../../node_modules/.pnpm/tsup@8.3.5_@swc+core@1.9.
|
|
43
|
+
// ../../node_modules/.pnpm/tsup@8.3.5_@swc+core@1.9.3_jiti@2.4.0_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.6.1/node_modules/tsup/assets/cjs_shims.js
|
|
44
44
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
45
45
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
46
46
|
|
package/package.json
CHANGED
|
@@ -11,12 +11,21 @@ export default defineConfig({
|
|
|
11
11
|
js: 'ts',
|
|
12
12
|
wxss: 'scss',
|
|
13
13
|
},
|
|
14
|
+
dirs: {
|
|
15
|
+
component: 'src/components',
|
|
16
|
+
page: 'src/pages',
|
|
17
|
+
},
|
|
18
|
+
// 假如你想让默认生成的组件命名为 HelloWorld/index 而不是 HelloWorld/HelloWorld 可以下列选项
|
|
19
|
+
// filenames: {
|
|
20
|
+
// component: 'index',
|
|
21
|
+
// page: 'index',
|
|
22
|
+
// },
|
|
14
23
|
},
|
|
15
24
|
},
|
|
16
25
|
css: {
|
|
17
26
|
preprocessorOptions: {
|
|
18
27
|
scss: {
|
|
19
|
-
silenceDeprecations: ['legacy-js-api'],
|
|
28
|
+
silenceDeprecations: ['legacy-js-api', 'import'],
|
|
20
29
|
},
|
|
21
30
|
},
|
|
22
31
|
},
|