delta-comic-core 0.4.0 → 0.4.1
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/bundle.cjs +1 -1
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/dist/vite/index.d.ts +1 -2
- package/package.json +1 -1
package/dist/bundle2.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import external from 'vite-plugin-external'\r\nimport monkey from 'vite-plugin-monkey'\r\n/** vite插件,自动配置了库的外部化与脚本头 */\r\nexport const deltaComic = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定,所有的`>=`会替换为`^`,除非`lockCoreVersion为`true` */\r\n supportCoreVersion: string\r\n /** 如果为`true`,则`supportCoreVersion`的`>=`不会替换为`^` */\r\n lockCoreVersion?: boolean\r\n /** @default ['core'] */\r\n require?: ({\r\n id: string\r\n download?: string\r\n } | string)[]\r\n /** @default 'src/main.ts' */\r\n entry?: string\r\n},\r\n command: \"build\" | \"serve\"): any => [\r\n command == 'build' ? false : external({\r\n externals: {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n }\r\n }),\r\n monkey({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n display: config.displayName,\r\n id: config.name\r\n },\r\n version: `${config.version}/${config.supportCoreVersion}/${!!config.lockCoreVersion}`,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])].map(v => {\r\n if (typeof v == 'string') return `${v}:`\r\n return `${v.id}:${v.download ?? ''}`\r\n }),\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ? {} : {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n },\r\n },\r\n server: {\r\n mountGmApi: false,\r\n open: false,\r\n prefix: false\r\n }\r\n })\r\n ]"],"mappings":"uMAGA,MAAa,GAAc,EAkBzB,IAAoC,CAClC,GAAW,QAAU,IAAA,EAAA,EAAA,SAAiB,CACpC,UAAW,CACT,IAAK,qBACL,KAAM,sBACN,WAAY,uBACZ,MAAO,uBACP,aAAc,wBACd,mBAAoB,qBACpB,aAAc,oBACd,YAAa,wBACd,CACF,CAAC,EAAA,EAAA,EAAA,SACK,CACL,MAAO,EAAO,OAAS,cACvB,WAAY,CACV,KAAM,CACJ,QAAS,EAAO,YAChB,GAAI,EAAO,KACZ,CACD,QAAS,GAAG,EAAO,QAAQ,GAAG,EAAO,mBAAmB,GAAG,CAAC,CAAC,EAAO,kBACpE,OAAQ,EAAO,OACf,YAAa,EAAO,YACpB,QAAS,CAAC,OAAQ,GAAI,EAAO,SAAW,EAAE,CAAE,CAAC,IAAI,GAC3C,OAAO,GAAK,SAAiB,GAAG,EAAE,GAC/B,GAAG,EAAE,GAAG,GAAG,EAAE,UAAY,KAChC,CACH,CACD,MAAO,CACL,gBAAiB,GAAW,QAAU,EAAE,CAAG,CACzC,IAAK,qBACL,KAAM,sBACN,WAAY,uBACZ,MAAO,uBACP,aAAc,wBACd,mBAAoB,qBACpB,aAAc,oBACd,YAAa,wBACd,CACF,CACD,OAAQ,CACN,WAAY,GACZ,KAAM,GACN,OAAQ,GACT,CACF,CAAC,CAAA"}
|
package/dist/bundle2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["import external from 'vite-plugin-external'\r\nimport monkey from 'vite-plugin-monkey'\r\n/** vite插件,自动配置了库的外部化与脚本头 */\r\nexport const deltaComic = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定,所有的`>=`会替换为`^`,除非`lockCoreVersion为`true` */\r\n supportCoreVersion: string\r\n /** 如果为`true`,则`supportCoreVersion`的`>=`不会替换为`^` */\r\n lockCoreVersion?: boolean\r\n /** @default ['core'] */\r\n require?: ({\r\n id: string\r\n download?: string\r\n } | string)[]\r\n /** @default 'src/main.ts' */\r\n entry?: string\r\n},\r\n command: \"build\" | \"serve\"): any => [\r\n command == 'build' ? false : external({\r\n externals: {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n }\r\n }),\r\n monkey({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n display: config.displayName,\r\n id: config.name\r\n },\r\n version: `${config.version}/${config.supportCoreVersion}/${!!config.lockCoreVersion}`,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])].map(v => {\r\n if (typeof v == 'string') return `${v}:`\r\n return `${v.id}:${v.download ?? ''}`\r\n }),\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ? {} : {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n },\r\n },\r\n server: {\r\n mountGmApi: false,\r\n open: false,\r\n prefix: false\r\n }\r\n })\r\n ]"],"mappings":";;AAGA,MAAa,cAAc,GAkBzB,MAAoC,CAClC,KAAW,UAAU,KAAQ,SAAS,EACpC,WAAW;CACT,KAAK;CACL,MAAM;CACN,YAAY;CACZ,OAAO;CACP,cAAc;CACd,oBAAoB;CACpB,cAAc;CACd,aAAa;CACd,EACF,CAAC,EACF,OAAO;CACL,OAAO,EAAO,SAAS;CACvB,YAAY;EACV,MAAM;GACJ,SAAS,EAAO;GAChB,IAAI,EAAO;GACZ;EACD,SAAS,GAAG,EAAO,QAAQ,GAAG,EAAO,mBAAmB,GAAG,CAAC,CAAC,EAAO;EACpE,QAAQ,EAAO;EACf,aAAa,EAAO;EACpB,SAAS,CAAC,QAAQ,GAAI,EAAO,WAAW,EAAE,CAAE,CAAC,KAAI,MAC3C,OAAO,KAAK,WAAiB,GAAG,EAAE,KAC/B,GAAG,EAAE,GAAG,GAAG,EAAE,YAAY,KAChC;EACH;CACD,OAAO,EACL,iBAAiB,KAAW,UAAU,EAAE,GAAG;EACzC,KAAK;EACL,MAAM;EACN,YAAY;EACZ,OAAO;EACP,cAAc;EACd,oBAAoB;EACpB,cAAc;EACd,aAAa;EACd,EACF;CACD,QAAQ;EACN,YAAY;EACZ,MAAM;EACN,QAAQ;EACT;CACF,CAAC,CAAA"}
|
package/dist/pack.tgz
CHANGED
|
Binary file
|
package/dist/vite/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PluginOption } from 'vite';
|
|
2
1
|
/** vite插件,自动配置了库的外部化与脚本头 */
|
|
3
2
|
export declare const deltaComic: (config: {
|
|
4
3
|
name: string;
|
|
@@ -17,4 +16,4 @@ export declare const deltaComic: (config: {
|
|
|
17
16
|
} | string)[];
|
|
18
17
|
/** @default 'src/main.ts' */
|
|
19
18
|
entry?: string;
|
|
20
|
-
}, command: "build" | "serve") =>
|
|
19
|
+
}, command: "build" | "serve") => any;
|