Giter Club home page Giter Club logo

Comments (7)

chemzqm avatar chemzqm commented on May 23, 2024

严格模式的问题,wept 总是使用 es6 进行编译的,所以 this 是 undefined。
要么你在使用 wept 的时候不用 babel,要么 wept 提供一个不使用 babel 的选项?

from wept.

Uheinanba avatar Uheinanba commented on May 23, 2024

我也遇到这个问题,wept是否可以提供一个 不默认使用babel 编译的选项,毕竟在chrome es6的特性基本都是支持的吧。

from wept.

Gcaufy avatar Gcaufy commented on May 23, 2024

@chemzqm 那希望能像开发者工具一样,提供一个ES6可选的选项,谢谢。

from wept.

chemzqm avatar chemzqm commented on May 23, 2024

@huike1989 使用 babel 主要是为了尽可能保持跟官方实现一致。

@Gcaufy 0.6.0 已支持通过 wept.json 关闭 babel 编译。

from wept.

Uheinanba avatar Uheinanba commented on May 23, 2024

@chemzqm 刚更新啦 0.6.0版本?怎么关闭babel编译呢?wept.json?写在项目中吗?有个demo之类的吗

from wept.

chemzqm avatar chemzqm commented on May 23, 2024

项目根目录下创建 wept.json
https://github.com/chemzqm/wept/wiki/wept-%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6

from wept.

Gcaufy avatar Gcaufy commented on May 23, 2024

多谢~~

from wept.

Related Issues (20)

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.