UNPKG

hel-tpl-remote-lib

Version:

基于[hel-micro](https://github.com/tnfe/hel)搭建的远程仓库模板库

26 lines (20 loc) 1.06 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('hel-lib-proxy')) : typeof define === 'function' && define.amd ? define(['exports', 'hel-lib-proxy'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["hel-tpl-remote-lib"] = {}, global.helLibProxy)); })(this, (function (exports, helLibProxy) { 'use strict'; // import { appGroupName } from '../../package.json' // 如果从 package.json 直接导出 appGroupName // rollup 打包需要配置 @rollup/plugin-json // webpack 打包会把整个 package 对象打到运行代码里 const LIB_NAME = 'hel-tpl-remote-lib'; const lib = helLibProxy.exposeLib(LIB_NAME); // suport writing: import { regs, num, myMod } from 'hel-tpl-remote-lib'; const { regs, num, myMod, } = lib; exports["default"] = lib; exports.lib = lib; exports.myMod = myMod; exports.num = num; exports.regs = regs; Object.defineProperty(exports, '__esModule', { value: true }); }));