The Wayback Machine - https://web.archive.org/web/20200713142439/https://github.com/topics/babel
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 6,322 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
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

flftfqwxf
flftfqwxf commented May 15, 2017

DESC

在v2.2.12版本上,通过 thinkjs plugin xxx 创建的插件,在经过babel编译时存在问题,编译后的代码,无法在thinkjs系统中使用,其依赖和编译命令为:

 "dependencies": {
    "babel-runtime": "6.x.x"
  },
  "devDependencies": {
    "mocha": "1.20.1",
    "istanbul": "0.4.0",
    "babel-cli": "6.x.x",
    "babel-preset-es2015-loose": "6.x.x",
    "babel-preset-stage-1": "6.x.x",
    "babel-plugin-transform-runtime": "6.x.x",
    "ba
nelreina
nelreina commented Jun 11, 2018

I like your project a lot. I've been using it for a couple of months now. Just the demo folder never felt natural for me.
Simplify the project by integrating storybook instead of the demo folder.

then users can create documentation of their components.

I think it will benefit all library authors for React/Preact/ vue/ even javascript.

[Storybook](https://git

el1f
el1f commented Apr 20, 2020

First of all, congrats on the great project!
I've started using it a couple of days ago but I've now started to bump onto some very big hurdles due to the fact that the Readme and all of the currently available documentation is scattered across several docs, the micro bundle project and so on.
I'm afraid this issue will end up being kind of redundant but I was unable to find anywhere else where

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

andywer
andywer commented Dec 29, 2016

Since probably 90%+ of the users will want to have Babel and the autoprefixer it would be nice to ship a preset (using group()) that sets some blocks configured in a best-practice manner:

  • Babel with babel-preset-env (target last 2 versions for instance)
  • PostCSS with autoprefixer (similar target as set for babel-preset-env)
  • Set process.env.NODE_ENV (in output code, using `defin
mtjn
mtjn commented Apr 24, 2020
/* example.ts */

// error: Parsing error: Unexpeced token, expected ":"
interface example {
  readonly id: string;
//         ^
}
/* .eslintrc */
{
  "root": true,
  "env": {
    "es6": true,
    "node": true,
    "jest/globals": true
  },
  "parser": "babel-eslint",
  "extends": [
    "eslint:recommended",
    "plugin:prettier/recommended",
    "plug
KeerthanaManoharan
KeerthanaManoharan commented Sep 24, 2018

VSCode not giving auto suggestions of file name inside the directory once we are using alias name with babel module resolver plugin for react native .
I am having .js file inside the path @components but it is simply giving the suggestion as
@components/ showing the suggestion as {} react,{} props,{} react-native

My .babelrc file :
{
"presets": [
"react-native"
],

ChristofferSkog21st
ChristofferSkog21st commented Mar 9, 2019

The features section in the docs states that nodemon is available in the project, when it's clearly not. It's not added as a dependency or as a command in the project. Maybe remove this from the docs or actually add nodemon?

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.