Comments (5)
编译ES6 代码, 请使用对应的parser
fis3-parser-babel 或者 fis3-parser-typescript 或者其它的parser
from fis3-parser-vue-component.
// vue组件中ES2015处理
fis.match('src/**.vue:js', {
isMod: true,
rExt: 'js',
useSameNameRequire: true,
parser: [
fis.plugin('babel-6.x', {
presets: ['es2015-loose', 'react', 'stage-3']
}),
fis.plugin('translate-es3ify', null, 'append')
]
});
typescript 类似~
from fis3-parser-vue-component.
谢谢,我就是按照这种方法处理的,但是运行你们的demo 发现.vue里的js一样没有编译
from fis3-parser-vue-component.
@erdade 请看这个demo https://github.com/Treri/fis3-typescript-vue-hackernews-2.0
online demo http://isay.me/fis3-typescript-vue-hackernews-2.0/dist/
from fis3-parser-vue-component.
@treri 非常感谢,用你这的demo跑就没有问题了,我把项目package.json重新照你的配了一遍不知道是不是其中哪个插件版本有问题
from fis3-parser-vue-component.
Related Issues (20)
- 在mac上运行会报 [ERROR] content.replace is not a function HOT 1
- 当我尝试往tr里使用插槽slot插入td时候 这部分无法渲染。 HOT 7
- 5.0.0版本并不支持vue 1.0渲染问题 HOT 4
- fis.plugin('node-sass') sourceMap 无效 HOT 2
- 解析出来的js文件可不可以合并? HOT 9
- npm包和最新版本代码不一致? HOT 2
- 入口文件没有进行render函数编译 HOT 5
- 2.0以上编译vue-router的异步组件有问题 HOT 3
- 运行的时候,老的代码报错了,怎么样做兼容 HOT 2
- 将css文件内联到js里面extractCSS: false, 导致cssSprite插件无效 HOT 6
- v5.4.0编译后会给css加上hash值,而且无配置可删除
- 请问 fis3-parser-vue-component 是否支持sourceMap HOT 1
- 在 *.vue 文件中使用 render 函数无效 HOT 1
- 我们想同时支持用vue1.X和vue2.0有什么办法吗? HOT 1
- 在同一目录下面vue和js是否可以不同名呢? HOT 1
- 2.5.2版本的vue 无法编译 HOT 1
- 你好,有打算支持CSS Modules吗?
- 插件依赖的deasync不支持node8.0版本,导致插件无法在node8正常运行。 HOT 1
- [email protected] 版本,你这个组件会失效,而且没有任何报错
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 fis3-parser-vue-component.