# Babel

Babel is a JavaScript compiler and toolchain that converts modern ECMAScript code into backwards-compatible JavaScript.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Babel in Khan Academy's i18n Toolchain

DevFeed: [Babel in Khan Academy's i18n Toolchain](<https://devfeed.tech/articles/babel-in-khan-academy-s-i18n-toolchain-27381.md>)

Original publisher: [Read original article](<http://engineering.khanacademy.org/posts/i18n-babel-plugin.htm>)

Author: Khan Academy

Published: 2015-06-22T22:00:00Z

Content type: article

Language: en

Sources: [Khan Academy](<https://devfeed.tech/sources/khan-academy.md>)

Topics: [Babel](<https://devfeed.tech/topics/babel.md>), [Internationalization (i18n)](<https://devfeed.tech/topics/i18n.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [React](<https://devfeed.tech/topics/react.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [argument](<https://devfeed.tech/tags/argument.md>), [arguments](<https://devfeed.tech/tags/arguments.md>), [ast](<https://devfeed.tech/tags/ast.md>), [babel](<https://devfeed.tech/tags/babel.md>), [build-system](<https://devfeed.tech/tags/build-system.md>), [callback](<https://devfeed.tech/tags/callback.md>), [class](<https://devfeed.tech/tags/class.md>), [classes](<https://devfeed.tech/tags/classes.md>), [destructuring](<https://devfeed.tech/tags/destructuring.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [es6](<https://devfeed.tech/tags/es6.md>), [eslint](<https://devfeed.tech/tags/eslint.md>), [exports](<https://devfeed.tech/tags/exports.md>), [foreach](<https://devfeed.tech/tags/foreach.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [function](<https://devfeed.tech/tags/function.md>), [functions](<https://devfeed.tech/tags/functions.md>), [i18n](<https://devfeed.tech/tags/i18n.md>), [jsx](<https://devfeed.tech/tags/jsx.md>), [news](<https://devfeed.tech/tags/news.md>), [web-frontend](<https://devfeed.tech/tags/web-frontend.md>)

### AI overview

Khan Academy's Babel migration preserved its custom i18n workflow by adding a Babel plugin that turns `<$_>` and `<$i18nDoNotTranslate>` JSX tags into function calls. Matching jstransform required retaining generated line numbers and exact whitespace in translation strings; the team compared Gettext `.pot` files from both build paths and used fixtures to isolate whitespace differences. Migration testing also caught two transformer issues: class output still contained `let` until `es6.blockScoping` was added to the whitelist, and Babel's function-name transformation could make a `setInterval` method call itself by shadowing the global. The article reports that Babel maintainers fixed the issues and describes the plugin as a relatively straightforward way to preserve the existing build workflow.

### Source excerpt

By Kevin Barabash We've been using ES6 (along with JSX) for sometime at Khan Academy. Right now, we're ... Read more

## Intent, meet Toolchain

DevFeed: [Intent, meet Toolchain](<https://devfeed.tech/articles/intent-meet-toolchain-67117.md>)

Original publisher: [Read original article](<https://githubnext.com/posts/dsyme-intent-meet-toolchain/>)

Published: 2025-09-24T00:00:00Z

Content type: article

Language: en

Sources: [GitHub Next](<https://devfeed.tech/sources/github-next.md>)

Topics: [toolchain](<https://devfeed.tech/topics/toolchain.md>), [Babel](<https://devfeed.tech/topics/babel.md>)

Tags: [toolchain](<https://devfeed.tech/tags/toolchain.md>), [toolchains](<https://devfeed.tech/tags/toolchains.md>)

### AI overview

The article considers how app development toolchains transform intent into working outputs and explores how they accommodate change, including whether code is losing its traditional supremacy.

### Source excerpt

Intent, meet Toolchain

## React Native 0.78 - React 19 and more

DevFeed: [React Native 0.78 - React 19 and more](<https://devfeed.tech/articles/react-native-0-78-react-19-and-more-48125.md>)

Original publisher: [Read original article](<https://reactnative.dev/blog/2025/02/19/react-native-0.78>)

Author: Vojtech Novak; Shubham Gupta; Fabrizio Cucci; Riccardo Cipolleschi

Published: 2025-02-19T00:00:00Z

Content type: release

Language: en

Sources: [React Native Blog](<https://devfeed.tech/sources/react-native-blog.md>)

Topics: [React Native](<https://devfeed.tech/topics/react-native.md>), [React](<https://devfeed.tech/topics/react.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Android](<https://devfeed.tech/topics/android.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [iOS](<https://devfeed.tech/topics/ios.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [async](<https://devfeed.tech/tags/async.md>), [babel](<https://devfeed.tech/tags/babel.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [ios](<https://devfeed.tech/tags/ios.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [migration](<https://devfeed.tech/tags/migration.md>), [react](<https://devfeed.tech/tags/react.md>), [react-native](<https://devfeed.tech/tags/react-native.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

React Native 0.78 releases with React 19, native Android Vector drawable support, and improved brownfield integration for iOS. The release also describes React 19 features and a simplified process for enabling React Compiler in React Native apps.

### Source excerpt

Today we are excited to release React Native 0.78!

## Next.js 15 RC

DevFeed: [Next.js 15 RC](<https://devfeed.tech/articles/next-js-15-rc-3206.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/next-15-rc>)

Author: Zack Tanner

Published: 2024-05-23T17:00:00Z

Content type: release

Language: en

Sources: [Next.js](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Next.js](<https://devfeed.tech/topics/next-js.md>), [React](<https://devfeed.tech/topics/react.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [build times](<https://devfeed.tech/topics/build-times.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [caching](<https://devfeed.tech/tags/caching.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [errors](<https://devfeed.tech/tags/errors.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [react](<https://devfeed.tech/tags/react.md>), [release](<https://devfeed.tech/tags/release.md>)

### AI overview

The Next.js 15 Release Candidate is available for testing ahead of the stable release. It adds React 19 RC support, experimental React Compiler support, improved hydration error displays, changes caching defaults, experimental Partial Prerendering, post-response code execution, Turbopack configuration updates, and stable external package bundling options.

### Source excerpt

The Next.js 15 Release Candidate (RC) is now available. This early version allows you to test the latest features before the upcoming stable release.

## All I want for Christmas...

DevFeed: [All I want for Christmas...](<https://devfeed.tech/articles/all-i-want-for-christmas-44081.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/all-i-want-for-christmas>)

Author: Brent

Published: 2023-01-03T00:00:00Z

Content type: opinion

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [Programming language](<https://devfeed.tech/topics/programming-language.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [browser](<https://devfeed.tech/topics/browser.md>), [C](<https://devfeed.tech/topics/c.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [browser](<https://devfeed.tech/tags/browser.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [php](<https://devfeed.tech/tags/php.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>)

### AI overview

An opinion piece framed as a Christmas wish list for PHP discusses desired language improvements before turning to JavaScript's history and the development of tools and alternative languages that compile or transpile code for browser use. The supplied text ends mid-sentence, so the full conclusion is unavailable.

### Source excerpt

Read the full post on https://stitcher.io/blog/all-i-want-for-christmas

## Vue 2.7 is Now in Beta

DevFeed: [Vue 2.7 is Now in Beta](<https://devfeed.tech/articles/vue-2-7-is-now-in-beta-3005.md>)

Original publisher: [Read original article](<https://blog.vuejs.org/posts/vue-2-7-beta>)

Published: 2022-06-20T00:00:00Z

Content type: release

Language: en

Sources: [The Vue Point](<https://devfeed.tech/sources/the-vue-point.md>)

Topics: [Vue.js](<https://devfeed.tech/topics/vue.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>)

Tags: [announce](<https://devfeed.tech/tags/announce.md>), [browser](<https://devfeed.tech/tags/browser.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [features](<https://devfeed.tech/tags/features.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>), [vue](<https://devfeed.tech/tags/vue.md>)

### AI overview

This release announcement presents Vue 2.7 as a beta that backports important Vue 3 features, including the Composition API, SFC support, and SFC CSS v-bind. It also describes supported APIs, ESNext syntax in template expressions, and behavior differences and limitations caused by Vue 2's getter/setter-based reactivity system.

### Source excerpt

We are happy to announce that Vue 2.7 is now in beta.

## Next.js 11.1

DevFeed: [Next.js 11.1](<https://devfeed.tech/articles/next-js-11-1-3167.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/next-11-1>)

Author: Tobias Koppers

Published: 2021-08-11T16:00:00Z

Content type: release

Language: en

Sources: [Next.js](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Next.js](<https://devfeed.tech/topics/next-js.md>), [Security](<https://devfeed.tech/topics/security.md>), [build performance](<https://devfeed.tech/topics/build-performance.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Code](<https://devfeed.tech/topics/code.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [ESLint](<https://devfeed.tech/topics/eslint.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [build-performance](<https://devfeed.tech/tags/build-performance.md>), [eslint](<https://devfeed.tech/tags/eslint.md>), [http](<https://devfeed.tech/tags/http.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [performance](<https://devfeed.tech/tags/performance.md>), [phishing](<https://devfeed.tech/tags/phishing.md>), [rust](<https://devfeed.tech/tags/rust.md>), [security](<https://devfeed.tech/tags/security.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Next.js 11.1 improves build performance and introduces an important security patch for an open redirect. The release adds experimental ES Modules support, Rust-based SWC tooling, faster data fetching during pre-rendering, faster source maps, and ESLint integration.

### Source excerpt

Next.js 11.1 introduces an important security patch, ES Modules support, performance improvements, Rust-based tooling, 2x faster data fetching when pre-rendering, and more!

## Define function overload types with TypeScript

DevFeed: [Define function overload types with TypeScript](<https://devfeed.tech/articles/define-function-overload-types-with-typescript-51754.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/define-function-overload-types-with-type-script>)

Published: 2021-01-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [function](<https://devfeed.tech/topics/function.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [code](<https://devfeed.tech/tags/code.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [functions](<https://devfeed.tech/tags/functions.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

A tutorial on typing overloaded functions in TypeScript, including an API that accepts a callback or returns a promise when no callback is provided. It also explains how to type a Babel macro whose compile-time implementation differs from the function interface presented to developers.

### Source excerpt

Have your JS expressiveness and type it too.

## Introducing the New JSX Transform

DevFeed: [Introducing the New JSX Transform](<https://devfeed.tech/articles/introducing-the-new-jsx-transform-22341.md>)

Original publisher: [Read original article](<https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html>)

Published: 2020-09-22T00:00:00Z

Content type: release

Language: en

Sources: [React](<https://devfeed.tech/sources/react.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Babel](<https://devfeed.tech/topics/babel.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jsx](<https://devfeed.tech/tags/jsx.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [react](<https://devfeed.tech/tags/react.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

The new JSX transform compiles JSX into calls imported automatically from `react/jsx-runtime`, so JSX no longer requires `React` in scope; Hooks and other React exports still need importing. It preserves existing JSX and leaves `React.createElement` and the classic transform supported. Adoption is optional and may slightly reduce bundle size depending on setup. It requires a compatible React version and compiler: React 17 RC or the backported 16.14.0, 15.7.0, or 0.14.10; Babel 7.9+, TypeScript 4.1+, or Flow 0.126+. Babel's automatic runtime must be enabled explicitly in the described versions; Babel 8 makes it the default. Create React App 4+, Next.js 9.5.3+, and Gatsby 2.24.5+ use it with compatible React versions. For other libraries, Babel's `importSource` can target a library that supplies the needed runtime entry points, or users can retain the classic transform.

### Source excerpt

This blog site has been archived. Go to react.dev/blog to see the recent posts. Although React 17 doesn't contain new features, it will provide support for a new version of the JSX transform. In this post, we will describe what it is and how to try it. What's a JSX Transform? Browsers don't understand JSX out of the box, so most React users rely on a compiler like Babel or TypeScript to transform JSX code into regular JavaScript. Many preconfigured toolkits like Create React App or Next.js also include a JSX transform under the hood. Together with the React 17 release, we've wanted to make a few improvements to the JSX transform, but we didn't want to break existing setups. This is why we worked with Babel to offer a new, rewritten version of the JSX transform for people who would like to upgrade. Upgrading to the new transform is completely optional, but it has a few benefits: With the new transform, you can use JSX without importing React. Depending on your setup, its compiled output may slightly improve the bundle size. It will enable future improvements that reduce the number of concepts you need to learn React. This upgrade will not change the JSX syntax and is not required. The old JSX transform will keep working as usual, and there are no plans to remove the support for it. React 17 RC already includes support for the new transform, so go give it a try! To make it easier to adopt, we've also backported its support to React 16.14.0, React 15.7.0, and React 0.14.10. You can find the upgrade instructions for different tools below. Now let's take a closer look at the differences between the old and the new transform. What's Different in the New Transform? When you use JSX, the compiler transforms it into React function calls that the browser can understand. The old JSX transform turned JSX into React.createElement(...) calls. For example, let's say your source code looks like this: import React from 'react'; function App() { return <h1>Hello World</h1>; } Under t

## How I structure Express apps

DevFeed: [How I structure Express apps](<https://devfeed.tech/articles/how-i-structure-express-apps-51783.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/how-i-structure-express-apps>)

Published: 2020-07-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Express](<https://devfeed.tech/topics/express.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [middleware](<https://devfeed.tech/topics/middleware.md>), [builds](<https://devfeed.tech/topics/builds.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [backends](<https://devfeed.tech/tags/backends.md>), [builds](<https://devfeed.tech/tags/builds.md>), [dev](<https://devfeed.tech/tags/dev.md>), [dev-tools](<https://devfeed.tech/tags/dev-tools.md>), [express](<https://devfeed.tech/tags/express.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [middleware](<https://devfeed.tech/tags/middleware.md>)

### AI overview

A practical guide to structuring medium-sized Express applications running on Node.js. It covers backend layout, middleware, logging, Babel compilation, development scripts, watch mode, and production build behavior.

### Source excerpt

The build/dev tools and scripts I use for Node backends.

## Using Tailwind CSS with Gatsby, React & Emotion Styled Components

DevFeed: [Using Tailwind CSS with Gatsby, React & Emotion Styled Components](<https://devfeed.tech/articles/using-tailwind-css-with-gatsby-react-emotion-styled-components-31316.md>)

Original publisher: [Read original article](<https://nystudio107.com/blog/using-tailwind-css-with-gatsby-react-emotion-styled-components>)

Author: andrew@nystudio107.com (Andrew Welch)

Published: 2019-10-20T14:08:00Z

Content type: tutorial

Language: en

Sources: [nystudio107](<https://devfeed.tech/sources/nystudio107-articles-on-modern-web-development.md>)

Topics: [Tailwind CSS](<https://devfeed.tech/topics/tailwind.md>), [gatsby](<https://devfeed.tech/topics/gatsby.md>), [React](<https://devfeed.tech/topics/react.md>), [styled-components](<https://devfeed.tech/topics/styled-components.md>), [CSS](<https://devfeed.tech/topics/css.md>), [PostCSS](<https://devfeed.tech/topics/postcss.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [components](<https://devfeed.tech/tags/components.md>), [css](<https://devfeed.tech/tags/css.md>), [css-in-js](<https://devfeed.tech/tags/css-in-js.md>), [emotion](<https://devfeed.tech/tags/emotion.md>), [gatsby](<https://devfeed.tech/tags/gatsby.md>), [insights](<https://devfeed.tech/tags/insights.md>), [learn](<https://devfeed.tech/tags/learn.md>), [postcss](<https://devfeed.tech/tags/postcss.md>), [project](<https://devfeed.tech/tags/project.md>), [react](<https://devfeed.tech/tags/react.md>), [styled](<https://devfeed.tech/tags/styled.md>), [styled-components](<https://devfeed.tech/tags/styled-components.md>), [tailwind](<https://devfeed.tech/tags/tailwind.md>), [tailwind-css](<https://devfeed.tech/tags/tailwind-css.md>), [utility-first](<https://devfeed.tech/tags/utility-first.md>)

### AI overview

A tutorial on combining Tailwind CSS with Gatsby and React through Emotion Styled Components. It explains a hybrid setup using twin.macro for component-level Tailwind styles and PostCSS for Tailwind's base and global styles.

### Source excerpt

Learn how to use the utility-first Tailwind CSS with Emotion "CSS-in-JS" Styled Components in a Gatsby JS + React project.

## Saving manual work with babel-plugin-macros

DevFeed: [Saving manual work with babel-plugin-macros](<https://devfeed.tech/articles/saving-manual-work-with-babel-plugin-macros-52556.md>)

Original publisher: [Read original article](<http://www.jackfranklin.co.uk/blog/saving-manual-work-with-babel-macro/>)

Published: 2019-07-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jack Franklin](<https://devfeed.tech/sources/jack-franklin.md>)

Topics: [Babel](<https://devfeed.tech/topics/babel.md>), [import](<https://devfeed.tech/topics/import.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [all](<https://devfeed.tech/tags/all.md>), [allows](<https://devfeed.tech/tags/allows.md>), [babel](<https://devfeed.tech/tags/babel.md>), [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [categories](<https://devfeed.tech/tags/categories.md>), [code](<https://devfeed.tech/tags/code.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compile](<https://devfeed.tech/tags/compile.md>), [computer](<https://devfeed.tech/tags/computer.md>), [easier](<https://devfeed.tech/tags/easier.md>), [easily](<https://devfeed.tech/tags/easily.md>), [macros](<https://devfeed.tech/tags/macros.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [saving](<https://devfeed.tech/tags/saving.md>), [with](<https://devfeed.tech/tags/with.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

Babel macros run during bundling, so they can calculate values or generate imports before code reaches the browser. The author uses `import-all.macro` to import product subcategory images with Webpack, which resolves each image to its built URL. Because images are nested by category, the generated file paths are transformed into a map keyed by filename slug; a React component can then look up an image by subcategory slug and log missing images. This avoids hard-coding image paths or maintaining more than 50 individual imports while keeping Webpack's asset handling. The workflow depends on image names matching the slugs and requires installing `babel-plugin-macros` and adding `macros` to Babel's plugin list. The excerpt describes one project's experience and does not cover potential edge cases.

### Source excerpt

babel-plugin-macros is a project that I've followed with interest even though I'd never had a chance to use it. Today that changed and I wanted to share my use case and my very positive experience using it. What is babel-plugin-macros? The key feature of a Babel Macro is that they run at compile time. Rather than writing JavaScript that gets bundled and executed in the browser, writing JavaScript via babel-plugin-macros lets you run code at compile time. This means that the code is executed on your computer when you bundle, not by your users when they visit your website. Most commonly these macros will either calculate some value (one that you can and need at compilation time, not at runtime in the browser), or generate some other code that runs in the browser. As an example, once configured (we'll get to that in a moment), you can use preval.macro to easily evaluate some code at compile time: import preval from 'preval.macro' const twoPlusTwo = preval`module.exports = 2 + 2` This will be executed at compilation time, and the code that ships in your bundle looks like this: const twoPlusTwo = 4 But, why is this useful? The example above is ultimately not that useful - I think we all trust browsers to be able to add two and two at runtime. Today I came across a problem at work that I solved with a macro which made my job much easier. At Thread we sell clothes. Part of the site allows users to explore our entire product listing by filtering it down to what they are after. One of the things they can filter by is "sub category": this is specific types of clothes within a broader category. For example, for the category "Shirts", we have sub categories of "Plain shirts", "Formal shirts", "Denim shirts", and so on. The feature I'm working on adds an image to each of these sub categories in the UI so that people who might not have heard of the terminology can still recognise the category (before working in fashion I had no idea what a "chambray" shirt was!). One of the desig

## Presenting babel-plugin-cloudinary

DevFeed: [Presenting babel-plugin-cloudinary](<https://devfeed.tech/articles/presenting-babel-plugin-cloudinary-27971.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2019-04-02-babelplugincloudinary/>)

Author: Daniel Caldas Software Engineer; Goodguydaniel Com

Published: 2019-04-02T00:00:00Z

Content type: article

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [Babel](<https://devfeed.tech/topics/babel.md>), [Image](<https://devfeed.tech/topics/image.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [cloudinary](<https://devfeed.tech/tags/cloudinary.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [open-source-community](<https://devfeed.tech/tags/open-source-community.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [source](<https://devfeed.tech/tags/source.md>)

### AI overview

trivago's babel-plugin-cloudinary generates Cloudinary image URLs at build time using cloudinary-core, avoiding the need to ship the Cloudinary SDK for URL construction while retaining runtime-dynamic values. When it finds __buildCloudinaryUrl, the plugin substitutes placeholders for dynamic expressions, asks cloudinary-core to build the partial URL, then restores those expressions in a JavaScript template literal. A runtime .cloudinaryrc.json configures Cloudinary parameters such as the cloud name and HTTPS URLs. The article contrasts this with cloudinary-microurl, which does not support all Cloudinary features, and runtime SDK use, which it estimates adds about 20 KB minified and gzipped; trivago measured cloudinary-core at 14.19 KB in its vendor bundle. The authors say build-time compilation reduces JavaScript footprint and provides URLs compliant with the Cloudinary API.

### Source excerpt

I'm happy to let you know that we are releasing trivago/babel-plugin-cloudinary to the open source community! Throughout this...

## React Hooks: Array Destructuring Fundamentals

DevFeed: [React Hooks: Array Destructuring Fundamentals](<https://devfeed.tech/articles/react-hooks-array-destructuring-fundamentals-51851.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/react-hooks-array-destructuring-fundamentals>)

Published: 2018-12-31T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [destructuring](<https://devfeed.tech/topics/destructuring.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [destructuring](<https://devfeed.tech/tags/destructuring.md>), [es6](<https://devfeed.tech/tags/es6.md>), [fundamentals](<https://devfeed.tech/tags/fundamentals.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [react-hooks](<https://devfeed.tech/tags/react-hooks.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

A tutorial explains how React's useState hook relies on JavaScript array destructuring. It introduces destructuring as ES6 syntax, discusses syntactic sugar, and uses AST Explorer, Babel, and TypeScript to examine how the syntax works and is compiled for older browsers.

### Source excerpt

React's upcoming useState hook relies on array destructuring, let's dive in and see how that feature works.

## React/JSX as a server-side templating language

DevFeed: [React/JSX as a server-side templating language](<https://devfeed.tech/articles/react-jsx-as-a-server-side-templating-language-51857.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/react-jsx-as-a-server-side-templating-language>)

Published: 2018-10-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [HTML](<https://devfeed.tech/topics/html.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [Babel](<https://devfeed.tech/topics/babel.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [backend](<https://devfeed.tech/tags/backend.md>), [components](<https://devfeed.tech/tags/components.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [gotchas](<https://devfeed.tech/tags/gotchas.md>), [html](<https://devfeed.tech/tags/html.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [middleware](<https://devfeed.tech/tags/middleware.md>), [modules](<https://devfeed.tech/tags/modules.md>), [react](<https://devfeed.tech/tags/react.md>), [rendering](<https://devfeed.tech/tags/rendering.md>), [templating](<https://devfeed.tech/tags/templating.md>)

### AI overview

This tutorial describes migrating PayPal's marketing pages from a custom template system to React function components and JSX for both server-side and client-side rendering. It explains the motivation to reduce maintenance overhead and discusses integration challenges involving generated HTML, middleware, Babel configuration, and a polyfill service.

### Source excerpt

Using React function components to render your website's skeleton index.html

## Next.js 7

DevFeed: [Next.js 7](<https://devfeed.tech/articles/next-js-7-3240.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/next-7>)

Author: Tim Neutkens

Published: 2018-09-19T16:05:55Z

Content type: release

Language: en

Sources: [Next.js](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Next.js](<https://devfeed.tech/topics/next-js.md>), [releases](<https://devfeed.tech/topics/releases.md>), [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [Webpack](<https://devfeed.tech/topics/webpack.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>)

Tags: [bugfixes](<https://devfeed.tech/tags/bugfixes.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [debug](<https://devfeed.tech/tags/debug.md>), [developer-experience](<https://devfeed.tech/tags/developer-experience.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [performance](<https://devfeed.tech/tags/performance.md>), [releases](<https://devfeed.tech/tags/releases.md>), [ssr](<https://devfeed.tech/tags/ssr.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

Next.js 7 is presented as a production-ready release after 26 canary releases and 3.4 million downloads. It improves development speed and developer experience, adds better error reporting, upgrades the build pipeline to Webpack 4 and Babel 7, standardizes dynamic imports, supports static CDNs, reduces the initial HTML payload, and adds React Context with server-side rendering between the App and Pages.

### Source excerpt

After 26 canary releases and 3.4 million downloads, we are proud to introduce the production-ready Next.js 7

## What is a polyfill

DevFeed: [What is a polyfill](<https://devfeed.tech/articles/what-is-a-polyfill-51912.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/what-is-a-polyfill>)

Published: 2018-07-30T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [polyfill](<https://devfeed.tech/topics/polyfill.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Code](<https://devfeed.tech/topics/code.md>), [browser](<https://devfeed.tech/topics/browser.md>), [syntax](<https://devfeed.tech/topics/syntax.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [browser](<https://devfeed.tech/tags/browser.md>), [client](<https://devfeed.tech/tags/client.md>), [code](<https://devfeed.tech/tags/code.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [monkey-patching](<https://devfeed.tech/tags/monkey-patching.md>), [polyfill](<https://devfeed.tech/tags/polyfill.md>), [prototype](<https://devfeed.tech/tags/prototype.md>), [what-is](<https://devfeed.tech/tags/what-is.md>)

### AI overview

This tutorial explains why Babel syntax transformations do not automatically provide newer JavaScript APIs in older browsers. It defines polyfills, shows how gated polyfills and monkey-patching work, and discusses browser compatibility in client-side applications.

### Source excerpt

The difference between a polyfill and a code transform.

## Win a Spot in a 5-day JavaScript Workshop With Kyle Simpson!

DevFeed: [Win a Spot in a 5-day JavaScript Workshop With Kyle Simpson!](<https://devfeed.tech/articles/win-a-spot-in-a-5-day-javascript-workshop-with-kyle-simpson-27959.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2018-07-23-kyle-simpson-workshop/>)

Author: Tom Bartel

Published: 2018-07-23T00:00:00Z

Content type: release

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Webpack](<https://devfeed.tech/topics/webpack.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [engineering-culture](<https://devfeed.tech/tags/engineering-culture.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [webpack](<https://devfeed.tech/tags/webpack.md>), [workshop](<https://devfeed.tech/tags/workshop.md>)

### AI overview

trivago reserved three community spots in Kyle Simpson's five-day JavaScript workshop, beginning August 6, 2018, while the workshop was primarily for trivago employees. To enter, applicants had to submit a useful pull request to Babel or webpack and provide its URL through a sign-up form. Contributions could be modest, such as a bug fix or documentation; Babel's "good first issue" tag and webpack's contributor page were suggested starting points. trivago said it sponsors both projects and hoped the contest would bring them new contributors.

### Source excerpt

trivago is giving away 3 free spots in a workshop given by renowned author, instructor, and speaker Kyle Simpson (a.k.a. @getify). To be eligible, you only have to do two things...

## What is JSX?

DevFeed: [What is JSX?](<https://devfeed.tech/articles/what-is-jsx-51913.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/what-is-jsx>)

Published: 2018-07-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [MDX](<https://devfeed.tech/topics/mdx.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [React](<https://devfeed.tech/topics/react.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [abstraction](<https://devfeed.tech/topics/abstraction.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [beginner](<https://devfeed.tech/tags/beginner.md>), [class](<https://devfeed.tech/tags/class.md>), [compile](<https://devfeed.tech/tags/compile.md>), [function](<https://devfeed.tech/tags/function.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [object](<https://devfeed.tech/tags/object.md>), [react](<https://devfeed.tech/tags/react.md>), [variable](<https://devfeed.tech/tags/variable.md>), [what-is](<https://devfeed.tech/tags/what-is.md>)

### AI overview

A beginner-friendly explanation of JSX, showing how JSX is compiled by Babel into JavaScript expressions and how element types, props, and children map to the resulting API calls and objects.

### Source excerpt

You may use it every day, but have you seen what happens after Babel compiles it?

## How to write a code macro with babel-plugin-macros

DevFeed: [How to write a code macro with babel-plugin-macros](<https://devfeed.tech/articles/write-your-own-code-transform-for-fun-and-profit-51929.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/write-your-own-code-transform>)

Published: 2018-06-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Babel](<https://devfeed.tech/topics/babel.md>), [Code](<https://devfeed.tech/topics/code.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [compile](<https://devfeed.tech/tags/compile.md>), [developer](<https://devfeed.tech/tags/developer.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [plugin](<https://devfeed.tech/tags/plugin.md>)

### AI overview

A tutorial showing how to create a Babel macro that transforms source code at build time. It demonstrates using AST Explorer, configuring the parser and transform, and experimenting with macros that can improve runtime performance or reduce application bundle size.

### Source excerpt

How to write your own code macro with babel-plugin-macros 🎣

## Next.js 6 and Nextjs.org

DevFeed: [Next.js 6 and Nextjs.org](<https://devfeed.tech/articles/next-js-6-and-nextjs-org-3236.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/next-6>)

Author: Tim Neutkens

Published: 2018-05-16T21:04:04Z

Content type: release

Language: en

Sources: [Next.js](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Next.js](<https://devfeed.tech/topics/next-js.md>), [React](<https://devfeed.tech/topics/react.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [github](<https://devfeed.tech/tags/github.md>), [js](<https://devfeed.tech/tags/js.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [react](<https://devfeed.tech/tags/react.md>), [release](<https://devfeed.tech/tags/release.md>), [routing](<https://devfeed.tech/tags/routing.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

The article announces the production-ready Next.js 6 release and the launch of nextjs.org. It highlights zero-configuration static exports, automatic route-map generation, the new App Component, Babel 7 and Fragment syntax support, expanded integration tests focused on security, and Flow annotations in the core codebase.

### Source excerpt

Next.js 6 features zero-configuration static exports, App Component, Babel 7 and more

## Make maintainable workarounds with codegen 💥

DevFeed: [Make maintainable workarounds with codegen 💥](<https://devfeed.tech/articles/make-maintainable-workarounds-with-codegen-51827.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/make-maintainable-workarounds-with-codegen>)

Published: 2017-10-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [React](<https://devfeed.tech/topics/react.md>), [CommonJS](<https://devfeed.tech/topics/commonjs.md>), [build performance](<https://devfeed.tech/topics/build-performance.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [codegen](<https://devfeed.tech/tags/codegen.md>), [commonjs](<https://devfeed.tech/tags/commonjs.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [react](<https://devfeed.tech/tags/react.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>)

### AI overview

A practical explanation of using Babel code generation as a maintainable workaround for a Rollup CommonJS issue affecting a UMD build with React 16. The article shows how build-time code transformation can localize the workaround while preserving other builds.

### Source excerpt

Sometimes you need to workaround issues in other libraries. These workarounds can often lead to messy code. codegen is a tool that helps...

## Setting up Webpack, Babel and React from scratch, revisited

DevFeed: [Setting up Webpack, Babel and React from scratch, revisited](<https://devfeed.tech/articles/setting-up-webpack-babel-and-react-from-scratch-revisited-37372.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/webpack-babel-react-revisited/>)

Author: Stanko

Published: 2017-10-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [Webpack](<https://devfeed.tech/topics/webpack.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [React](<https://devfeed.tech/topics/react.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [babel](<https://devfeed.tech/tags/babel.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

A step-by-step tutorial for setting up React projects from scratch with Webpack and Babel. It explains the tools, creates a minimal development setup, and begins configuring the project using npm and JavaScript.

### Source excerpt

Last summer I wrote this post which quickly became my most popular one to day. With webpack 2 and 3 it got outdated, so I decided to write a new one. Before we start # I'll assume you have a basic knowledge of unix terminal, npm and JavaScript. You did some React, but now you want to level up and learn how setup React projects from scratch. This is detailed step-by-step guide, as I'll try to explain the whole process. If you just want code to play with, check this repository I created for this tutorial. Every time I talk about changing a source file, I'll paste complete file's content beneath it. You can look for ADDED IN THIS STEP comments which point out specific things that changed. Please note that this tutorial is written on macOS using node 8.5.0, but it should work on Linux and Windows without any major issues. If you find something that is not working, please provide a correction in the comments below. What are we trying to build? # Simple development setup for React applications using Webpack and Babel. But my main goal is for people to better understand these tools and how to use them. Setup that we are going to create is minimal, but it follows the best practices and gives you a solid ground to start from. Who am I and why should you listen to me? # Well, I'm a principal developer at Work&Co. I have a lot of experience on production level React projects, for clients like Twitter, Mastercard, Aeromexico, Hampton Creek... Marvin boilerplateWe have big plans for Marvin in the near future. is my creation as well, and what I'm trying to teach you is directly based on my experience on these projects. Init # Create a new folder, and package.json file in it, with the following content: { "name": "webpack-babel-react-revisited" } Of course you can replace "webpack-babel-react-revisited" with your project name. - package.json Show file structure after this stepHide file structure after this step Webpack # We'll start with installing webpack for module bundling. It

## Deploying ES2015+ Code in Production Today

DevFeed: [Deploying ES2015+ Code in Production Today](<https://devfeed.tech/articles/deploying-es2015-code-in-production-today-29497.md>)

Original publisher: [Read original article](<https://philipwalton.com/articles/deploying-es2015-code-in-production-today/>)

Published: 2017-09-13T19:23:12Z

Content type: tutorial

Language: en

Sources: [Philip Walton](<https://devfeed.tech/sources/philip-walton.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [ECMAScript](<https://devfeed.tech/topics/ecmascript.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Babel](<https://devfeed.tech/topics/babel.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [babel](<https://devfeed.tech/tags/babel.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [classes](<https://devfeed.tech/tags/classes.md>), [es2015](<https://devfeed.tech/tags/es2015.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

### AI overview

The article explains how to deploy ES2015+ JavaScript to production by serving a modern bundle to browsers that support the relevant syntax and retaining an ES5 fallback for older browsers. It discusses feature detection, polyfills, module bundlers, and Babel configuration.

### Source excerpt

Most web developers I talk to these days love writing JavaScript with all the newest language features--async/await, classes, arrow functions, etc. However, despite the fact that all modern browsers can run ES2015+ code and natively support the features I just mentioned, most developers still transpile their code to ES5 and bundle it with polyfills to accommodate the small percentage of users still on older browsers.

[Next page](<https://devfeed.tech/topics/babel.md?cursor=WyIyMDE3LTA5LTEzVDE5OjIzOjEyKzAwOjAwIiwgIjJjNzk3ZTI1LTkzNzktNDE5ZS04YzZhLTVjYWE5M2U3NGQ0NyJd>)