@vlian/framework 1.0.4 → 1.1.0
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.umd.cjs +29 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/index.umd.d.ts +8 -0
- package/dist/index.umd.d.ts.map +1 -0
- package/dist/index.umd.js +39268 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +13 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UMD 入口文件
|
|
3
|
+
*
|
|
4
|
+
* 此文件用于构建 UMD 格式的包,在浏览器环境中会将框架暴露为 window.vlianFramework
|
|
5
|
+
* Rollup 会自动处理 UMD 格式的导出,此文件只需要重新导出所有内容
|
|
6
|
+
*/ // 重新导出所有内容
|
|
7
|
+
"use strict";
|
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
_export_star(require("./index"), exports);
|
|
12
|
+
function _export_star(from, to) {
|
|
13
|
+
Object.keys(from).forEach(function(k) {
|
|
14
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
15
|
+
Object.defineProperty(to, k, {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function() {
|
|
18
|
+
return from[k];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return from;
|
|
24
|
+
}
|
|
25
|
+
// 在浏览器环境中,Rollup 会将 UMD 格式的导出自动赋值给全局变量
|
|
26
|
+
// 全局变量名称在 rollup.config.js 中配置为 'vlianFramework'
|
|
27
|
+
// 因此最终会通过 window.vlianFramework 访问
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.umd.ts"],"sourcesContent":["/**\n * UMD 入口文件\n * \n * 此文件用于构建 UMD 格式的包,在浏览器环境中会将框架暴露为 window.vlianFramework\n * Rollup 会自动处理 UMD 格式的导出,此文件只需要重新导出所有内容\n */\n\n// 重新导出所有内容\nexport * from './index';\n\n// 在浏览器环境中,Rollup 会将 UMD 格式的导出自动赋值给全局变量\n// 全局变量名称在 rollup.config.js 中配置为 'vlianFramework'\n// 因此最终会通过 window.vlianFramework 访问\n"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,WAAW;;;;;qBACG;;;;;;;;;;;;;;CAEd,uCAAuC;CACvC,iDAAiD;CACjD,mCAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.d.ts","sourceRoot":"","sources":["../src/index.umd.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,SAAS,CAAC"}
|