All Projects → kentcdodds → babel-codemod-example

kentcdodds / babel-codemod-example

Licence: other
An example of how to use babel as a codemod

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to babel-codemod-example

graphql2ts
Transform .graphql to graphql-js typescript
Stars: ✭ 41 (+70.83%)
Mutual labels:  ast, codemod
wx2bd
微信和百度小程序的互转工具,脚本转换率目标为100%,持续更新中~~
Stars: ✭ 21 (-12.5%)
Mutual labels:  ast
public
util toolkit for go.golang 通用函数包
Stars: ✭ 135 (+462.5%)
Mutual labels:  ast
coAST
Universal and language-independent abstract syntax tree
Stars: ✭ 30 (+25%)
Mutual labels:  ast
ifconfig.top
Source code of ifconfig.top website
Stars: ✭ 19 (-20.83%)
Mutual labels:  example
example-echo-server
🔗 An example Gleam web application
Stars: ✭ 59 (+145.83%)
Mutual labels:  example
npm-es-modules
Breakdown of 7 different ways to use ES modules with npm today.
Stars: ✭ 67 (+179.17%)
Mutual labels:  esmodules
cypress-example-circleci-orb
Demo of using the Cypress CircleCI Orb
Stars: ✭ 26 (+8.33%)
Mutual labels:  example
go-12factor-example
Example the 12factor app using golang
Stars: ✭ 20 (-16.67%)
Mutual labels:  example
java-basic-skeleton
☕🚀 Java Bootstrap: Skeleton for your new projects
Stars: ✭ 37 (+54.17%)
Mutual labels:  example
TypeInferencer
Algorithm W and Algorithm M in F#
Stars: ✭ 33 (+37.5%)
Mutual labels:  ast
flutter-animations
medium.com/flutter-jp/implicit-animation-b9d4b7358c28
Stars: ✭ 37 (+54.17%)
Mutual labels:  example
rocket-yew-starter-pack
Example boilerplate for websites in pure Rust
Stars: ✭ 77 (+220.83%)
Mutual labels:  example
Discord.Net-Example
Discord.Net Example bots
Stars: ✭ 104 (+333.33%)
Mutual labels:  example
why-react-hooks
Talk about React hooks
Stars: ✭ 60 (+150%)
Mutual labels:  kcd-edu
ionic-truncated-slider-cards
Customized slider component to achieve a fancy horizontal truncated slider, basically for short list of cards
Stars: ✭ 19 (-20.83%)
Mutual labels:  example
guide vue-cli-3-multiple-entry-points
Simple guide to show how to create multiple entry points (pages) using vue-cli-3
Stars: ✭ 29 (+20.83%)
Mutual labels:  example
fastify-example
Example webapp with Fastify
Stars: ✭ 18 (-25%)
Mutual labels:  example
vuepress-plugin-example-preview
Easily display the preview of a code snippet
Stars: ✭ 15 (-37.5%)
Mutual labels:  example
purescript-halogen-example
Sample halogen app that uses a few DSLs within the application's free monad
Stars: ✭ 62 (+158.33%)
Mutual labels:  example

babel-codemod-example

When ES modules land in Node, it will be impossible to do this:

import {thing} from './common-js-module'

Because CommonJS is not statically analyzable. However many people (myself included) have been doing this for a long time:

import {readFile} from 'fs'

In this quick video, I show you a quick babel plugin I wrote to do a codemod on my code to fix this automatically.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].