-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
公共文件里用es6写公共方法,但编译之后都被转成里es5写法了 #4294
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
这是编译出来的 dist 文件。 你的源开发文件还是 Taro 的语法。不会做编译处理。 另:你在微信开发者工具看的是 dist 文件夹里面的文件,属于编译后的代码。而不是你的源开发代码 |
我这个文件是放在src下边的呀,不是编译出来后的dist文件 |
我这个文件是放在src下边的呀,不是编译出来后的dist文件 |
而且我说的不是Taro语法被编译了,是es6被转成es5了 |
怎么可能会改变源代码。 你在哪里看的文件? |
Hello~ 您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。 如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。 Good luck and happy coding~ |
@tingyuxuan2302 你的源代码是怎样的? 你这单纯给我看这个文件,没有有效的信息,。 或者你给我小 demo ,让我可以复现这操作 |
问题描述
创建了一个公共文件,里边用es6语法封装了一些项目里用到的公共的方法,但是编译之后全部被转成里es5语法,看着很别扭
复现步骤
[复现问题的步骤]
期望行为
因为属于开发文件,期望编译之后不要改变开发文件的语法
报错信息
没有报错
系统信息
Taro v1.3.9
Taro CLI 1.3.9 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
npm: 6.4.1 - ~/.nvm/versions/node/v8.11.4/bin/npm
npmPackages:
@tarojs/components: 1.3.14 => 1.3.14
@tarojs/plugin-babel: 1.3.14 => 1.3.14
@tarojs/plugin-csso: 1.3.14 => 1.3.14
@tarojs/plugin-less: 1.3.14 => 1.3.14
@tarojs/plugin-uglifyjs: 1.3.14 => 1.3.14
@tarojs/router: 1.3.14 => 1.3.14
@tarojs/taro: 1.3.14 => 1.3.14
@tarojs/taro-alipay: 1.3.14 => 1.3.14
@tarojs/taro-h5: 1.3.14 => 1.3.14
@tarojs/taro-quickapp: 1.3.14 => 1.3.14
@tarojs/taro-swan: 1.3.14 => 1.3.14
@tarojs/taro-tt: 1.3.14 => 1.3.14
@tarojs/taro-weapp: 1.3.14 => 1.3.14
@tarojs/webpack-runner: 1.3.14 => 1.3.14
eslint-config-taro: 1.3.14 => 1.3.14
eslint-plugin-taro: 1.3.14 => 1.3.14
nerv-devtools: ^1.4.0 => 1.4.4
nervjs: ^1.4.0 => 1.4.4
npmGlobalPackages:
typescript: 3.3.1
The text was updated successfully, but these errors were encountered: