Giter Club home page Giter Club logo

Comments (3)

jinwyp avatar jinwyp commented on May 30, 2024

看我的这个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.

yanhaijing avatar yanhaijing commented on May 30, 2024

@jinwyp 目前已经升级了cli了,一个命令即可完成新建和更新,这个版本落后的问题 也会逐渐升级的

from jslib-base.

yanhaijing avatar yanhaijing commented on May 30, 2024

在 config.js 配置中添加 '@babel/plugin-transform-runtime', .babelrc 也添加了. 还有 Symbol 也不能被转化. 在 IE 中不能使用.

2.0版本发布了,这个问题已经可以了

from jslib-base.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.