Qiming zhao
Qiming zhao
@wind4gis 需要改这里 https://github.com/chemzqm/wept/blob/master/lib/util.js#L188 添加 babel 的 plugin,建议不要使用 wept 这个工具了。 想查看前端元素可以破解官方工具: 官方的开发者工具默认屏蔽了 UI 层的右键 inspect 功能,可以对官方开发者工具做些修改来开启右键(**开启该功能会造成 wxml 面板不可用以及页面无法响应点击等严重 bug**),首先使用 [js-beautify](https://link.zhihu.com/?target=https%3A//www.npmjs.com/package/js-beautify) 对代码批量格式化: ``` cd /Applications/wechatwebdevtools.app/Contents/Resources/app.nw find . -type f -name '*.js' -not...
建议你本地 git clone, 然后执行 npm install, gulp build
没有,项目不维护了,你把 wept 代码里使用到的 babel 配置升级下应该就可以了。
Fastclick看上去复杂度有点过高了,我用的是 [tap-event](https://github.com/component/tap-event)。另外我个人建议非外部跳转不要使用a链接,有时候a标签的click事件会在touchend之前触发然后阻塞绑定的tap,造成不必要的麻烦。
If you want better `indentexpr` for tsx files, replace `after/indent/tsx.vim` with: ``` vim let b:did_indent = 1 if !exists('*GetTypescriptIndent') | finish | endif setlocal indentexpr=GetTsxIndent() setlocal indentkeys=0{,0},0),0],0\,,!^F,o,O,e,*,>, if preline =~#...
javascript-typescript-langserver could be extended to do this as well. I can make this issue resolved from javascript-typescript-langserver, but it still doesn't work, looks like there still some work for javascript-typescript-langserver...
Looks like `no-unused-variable-rule` is always disabled in tslint-language-service, any way I could make use of that? I don't like set `allowUnusedVariable` in tsconfig.json, since it doesn't allow me skip some...
Bad filetype.
I think change `push` to `unshift` would be fine, no need for another option, since the webpack resolver should always come first.
@marijnh no obviously way to do that, since other plugins are loaded in callback, like: ``` tern.registerPlugin("webpack", function(server, options) { server.loadPlugin("commonjs") server.loadPlugin("es_modules") server.mod.modules.resolvers.unshift(function (name, parentFile) { }) }) ```