question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use Babel for main process

See original GitHub issue

What’s the consensus about letting the main process run through babel too? The issue I’m having is that I want to use redux-electron-store but I can’t require any of the reducers because they use the ES6 module syntax which currently isn’t supported by the latest versions of Electron/Chromium.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:5
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
chentsulincommented, Apr 15, 2016

Closed via #197.

1reaction
davejcommented, Apr 8, 2016

@naderhen: it just worked for me.

My entry point file looks like this:

/* eslint strict: 0 */
'use strict';

require('babel-register');
require('./main/init.js');

./main/init.js is where my main process logic is and it uses ES6 modules.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Usage Guide - Babel.js
The entire process to set this up involves: Running these commands to install the packages: ... Here's the installation command and a basic...
Read more >
Babel · The compiler for next generation JavaScript - Babel.js
Using Babel. How to use Babel with your tool of choice. 1Choose your tool (try CLI). Prototyping. In the browser. Babel built-ins. CLIRequire...
Read more >
Configure Babel
Babel can be configured! Many other tools have similar configs: ESLint ( .eslintrc ), Prettier ( .prettierrc ). All Babel API options are...
Read more >
babel/standalone
It provides an easy, convenient way to prototype with Babel. Using @babel/standalone, you can get started using Babel with just a simple script...
Read more >
Options - Babel.js
Primary options. These options are only allowed as part of Babel's programmatic options, so they are primarily for use by tools that wrap...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found