Skip to content
#

Babel

babel logo

🐠 Babel is a compiler created by Sebastian McKenzie in 2014 to convert ES6 to ES5 (originally called 6to5). It has since become a toolchain that enables developers to write any next generation JavaScript and serves as a testing ground for proposals from TC39, the technical committee that specifies ECMAScript. Babel can also convert JSX syntax and strip out type annotations from both Flow and TypeScript. Babel is built out of plugins. Compose your own transformation pipeline using plugins written by the community or write your own.

Here are 5,807 public repositories matching this topic...

langpavel
langpavel commented Oct 24, 2017

Too wide (and falsy) segregation of GraphQL Types and Resolvers

The first example of this is new ObjectType in src/data/queries/index.js importing fields.
Fields should be taken in context of parent type, not as standalone information.

This can ensure some users that custom types cannot have own field resolvers which is false.

In fact, much of fields which can have own resolvers

ava
novemberborn
novemberborn commented Feb 16, 2020

For historical reasons, the expectations object passed to t.throws() and t.throwsAsync() was not allowed to be undefined.

Now that we've simplified these assertions, we should allow expectations to be both undefined and null. See here:

https://github.com/avajs/ava/blob/55a3649000611900ba6dfbf94faefa6372a70e79/lib/assert.js#L76

This will cause some of our tests to fail, so th

electron-react-boilerplate
markerikson
markerikson commented Nov 18, 2019

Hi, I'm a Redux maintainer. I'd like to offer a couple suggestions.

Problem

The current Redux example implementation shows use of reducers with "hand-written" immutable update logic, and has a somewhat complex store configuration. In addition, the project currently uses a "folder-by-type" folder structure.

Proposed Solution

The project should switch to using the official [Redux

websmallrabbit
websmallrabbit commented Oct 12, 2019

I set

{
        test: /\.svg$/,
        loader: 'svg-sprite-loader',
        include: [resolve('./src/renderer/icons')],
        exclude: [resolve('./src/renderer/icons')],
        options: {
          symbolId: 'icon-[name]'
        }
      },
      {
        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
        loader: 'url-loader',
        exclude: [resolve('./src/renderer/ic
grommet
nick-at-hawkfish
nick-at-hawkfish commented Jan 27, 2020

It would be nice to have a babel macro that automatically runs the babel plugin to remove the runtime. That way, this project would work out of the box with "zero" config tools like create-react-app.

I'm thinking it could be something like:

import {html} from 'htm/preact/macro'

This is similar conceptually to CSS-IN-JS libraries providing a macro for their tools. See https://e

andrejcremoznik
andrejcremoznik commented Jun 13, 2019

This issue is a:

  • Bug report

Description

Adding terser to nwb.config.js produces:

✖ webpack = 'terser'
  Unexpected prop in webpack config - see https://github.com/insin/nwb/blob/master/docs/Configuration.md#webpack-configuration for supported config. If you were trying to add extra Webpack config, try putting it in webpack.extra instead

Example nwb.config.js:

SeedyROM
SeedyROM commented Dec 15, 2018

I've used Poi in the past to for Vue projects, but just recently decided to try it out with react. The current documentation is almost completely devoid of any hints as to how to get started. I ended up using an older version of Poi to get up and running.

I think if this project wants to keep up with the other framework specific tools it needs to atleast document what's changed since v9~

I k

a-koka
a-koka commented Dec 19, 2018

Is your feature request related to a problem? Please describe.
Users are unable to use console log lines in development mode.

Describe the solution you'd like
Update the documentation to demostrate how a user can disable console lines only for production builds.

Example babel.config.js

module.exports = api => {
  const babelEnv = api.env();
  ...
  const plugins = [];
 
alexanderdickson
alexanderdickson commented Nov 25, 2019

Typing print() in the jscodeshift transformer triggers browser print dialog

To Reproduce
Steps to reproduce the behavior:

  1. Specify to use jscodeshift
  2. Type print() in bottom left corner
  3. See the bug

Expected behavior
Shouldn't do that

Browser (please complete the following information):

  • OS: OS X
  • Browser Chrome
  • Version 78.0.3904.108

**astexplorer

Created by Sebastian McKenzie, James Kyle, Henry Zhu, Logan Smyth, Daniel Tschinder

Released September 28, 2014

Organization
babel
Website
babeljs.io

Related Topics

babel-es6 babel-plugin babel-preset
You can’t perform that action at this time.