Giter Club home page Giter Club logo

Comments (3)

mattdesl avatar mattdesl commented on July 21, 2024

I just added an ES2015 example. You could use a custom HTML index that registers babel, or you could just have your application entry point register babel.

https://github.com/Jam3/devtool/blob/master/example/es2015.js
https://github.com/Jam3/devtool/blob/master/example/es2015.html

Another approach is to use babel to transpile your src/ folder (perhaps incrementally, if possible), and then have devtool just watch the dist folder.

devtool dist/index.js --watch dist/**/*.js

from devtool.

krainboltgreene avatar krainboltgreene commented on July 21, 2024

So for those looking for a s similar situation here's what I did:

  • Enable babel6 source mapping (.babelrc, "both")
  • Build your babel source
  • Run against build source

Still trying to figure out how to integrate this with nodemon.

from devtool.

Salakar avatar Salakar commented on July 21, 2024

A note, you can take advantage of node 5 features in electron - if you already do in your prod environment. So you can use the babel 6 preset babel-preset-es2015-node5 just fine. (as per my PR)

from devtool.

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.