Comments (3)
看我的这个fork 吧
https://github.com/jinwyp/quickapp-h5
支持 import, 全部升级到最新版本的库
几点注意:
1 uglify = require('rollup-plugin-uglify'); 要改成 (prod && uglify.uglify())
2 引入jsdom 支持命令行 用window变量.
3 mocha 命令行 支持 import 语法 . npm run mocha
(mocha --require @babel/register ./test/**/*.js)
4 rename 漏了 README.zh-CN.md
增加 getFullPath('README.zh-CN.md'),
其他问题:
1 /test/broser/index.html 里面 还是不支持 import 语法. 需要研究.
看了 https://medium.com/dailyjs/running-mocha-tests-as-native-es6-modules-in-a-browser-882373f2ecb0 还是有问题.
from jslib-base.
@jinwyp 目前已经升级了cli了,一个命令即可完成新建和更新,这个版本落后的问题 也会逐渐升级的
from jslib-base.
在 config.js 配置中添加 '@babel/plugin-transform-runtime', .babelrc 也添加了. 还有 Symbol 也不能被转化. 在 IE 中不能使用.
2.0版本发布了,这个问题已经可以了
from jslib-base.
Related Issues (15)
- 【官方】收集使用jslib-base的项目 HOT 2
- npm install jslib-base Error HOT 2
- 切换为TS后, 测试不通过 HOT 3
- Hello! Is there a bug? HOT 4
- rollup 官方月已经升级到 1.8 了,目前 jslib-base 使用到是 0.57.1 版本 HOT 6
- 项目里面不能使用对象扩展的语法. HOT 2
- 提一个小bug HOT 3
- 代码压缩问题 HOT 2
- jslib 是否可以加上 index.d.ts 的代码声明自动生成 HOT 6
- 关于文档可以选用 jsdoc 来自动生成 HOT 5
- 是否有考虑直接用babel打包成lib/ es/等文件夹。 HOT 9
- 执行npm run release失败 HOT 1
- 创建新库无法默认使用 yarn HOT 4
- 建议开个typescript的分支 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jslib-base.