Displaying 1 to 8 from 8 results

babel-plugin-preval - Pre-evaluate code at build-time

  •    Javascript

You need to do some dynamic stuff, but don't want to do it at runtime. Or maybe you want to do stuff like read the filesystem to get a list of files and you can't do that in the browser.There's also preval.require('./something') and import x from /* preval */ './something' (which can both take some arguments) or add // @preval comment at the top of a file.

babel-plugin-codegen - 💥 Generate code at build-time

  •    Javascript

The applications of this plugin are wide, so it's kinda hard to sum it up, but basically my use case was I needed to add a bunch of named exports to glamorous (one for every DOM node type) and I didn't want to maintain the exports in my source file. So someone created a post-build script to concatenate them to the end of the file. I built this plugin so I could do that without having an ad-hoc post-build script.This plugin allows you to generate code at build-time. Any code that runs synchronously in node can be used to generate a string of code and that string will be inserted in place of where your usage appears.

babel-blade - a Babel plugin/macro that solves the Double Declaration problem in GraphQL

  •    HTML

babel-blade is the collective name for the babel plugin/macro that helps to generate graphql query strings inline and solves the double declaration problem.

idx.macro - a 'babel-macros' version of 'babel-plugin-idx'

  •    Javascript

This is a babel-macros version of the babel plugin idx. idx is a utility function for traversing properties on objects and arrays.




param

  •    Javascript

param.macro provides two main symbols — it and _. it can be used in an expression passed to a function which implicitly creates a lambda function in place accepting a single argument.

babel-plugin-glamorous-displayname - A babel plugin for Glamorous displayNames 💄

  •    Javascript

You want to use glamorous, but you want to have a better experience with the DevTools (because you lose the automatic displayName magic that the react babel preset gives you). Adds the displayName to glamorous components.

animated.macro - A tiny language for arithmetic over React Native's Animated values. 🕺🏽🔢

  •    Javascript

A tiny language for arithmetic over React Native's Animated values. For the best experience, install and configure babel-plugin-macros if you haven't already. Alternatively, this package also exports a standalone Babel plugin for use with Babel 6 or 7, under the name animated.macro/plugin.

babel-plugin-console - Babel Plugin that adds useful build time console functions 🎮

  •    Javascript

These problems can be solved by a computer at build time. This plugin allows you to inspect a functions parameters, variables, return value and parent scope by adding meaningful logs around the scope of the function - removing the hassle of manual console.log statements or debugging. obj1 ... objN A list of JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.