GithubHelp home page GithubHelp logo

Comments (5)

wyntau avatar wyntau commented on July 20, 2024

编译ES6 代码, 请使用对应的parser
fis3-parser-babel 或者 fis3-parser-typescript 或者其它的parser

from fis3-parser-vue-component.

ccqgithub avatar ccqgithub commented on July 20, 2024
// 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.

erdade avatar erdade commented on July 20, 2024

谢谢,我就是按照这种方法处理的,但是运行你们的demo 发现.vue里的js一样没有编译

from fis3-parser-vue-component.

wyntau avatar wyntau commented on July 20, 2024

@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.

erdade avatar erdade commented on July 20, 2024

@treri 非常感谢,用你这的demo跑就没有问题了,我把项目package.json重新照你的配了一遍不知道是不是其中哪个插件版本有问题

from fis3-parser-vue-component.

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.