JSPM

cpp-tool

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q23154F

工具函数

Package Exports

  • cpp-tool
  • cpp-tool/lib/bundle.browser.js
  • cpp-tool/lib/bundle.cjs.js
  • cpp-tool/lib/bundle.esm.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cpp-tool) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

打造专属工具函数库cpp-tool

用到的技术栈

  • typescript
  • react
  • scss
  • rollup

配置rollup.config.js

项目执行 npm i rollup -D 按照官网来配置即可

输出的格式:

格式(format -f/--output.format) String 生成包的格式。 下列之一:

  • amd – 异步模块定义,用于像RequireJS这样的模块加载器
  • cjs – CommonJS,适用于 Node 和 Browserify/Webpack
  • esm – 将软件包保存为 ES 模块文件,在现代浏览器中可以通过