Displaying 1 to 10 from 10 results

babel-plugin-module-resolver - Custom module resolver plugin for Babel

  •    Javascript

A Babel plugin to add a new resolver for your modules when compiling your code using Babel. This plugin allows you to add new "root" directories that contain your modules. It also allows you to setup a custom alias for directories, specific files, or even other npm modules. This plugin can simplify the require/import paths in your project. For example, instead of using complex relative paths like ../../../../utils/my-utils, you can write utils/my-utils. It will allow you to work faster since you won't need to calculate how many levels of directory you have to go up before accessing the file.

babel-plugin-transform-assets - Transforms asset imports at compile time using Babel ⚖

  •    Javascript

Transforms importing of asset files at compile time using Babel. This plugin removes the need to run your server code through Webpack module bundler when using loaders such as file-loader, url-loader and building isomorphic universal apps. Aids in creating a cleaner, maintainable build process at the cost of yet another Babel plugin. See the spec for more examples.




babel-plugin-transform-styles - Auto-generates React StyleSheets from import statements of CSS files 💃🏻

  •    Javascript

This Babel transoformation auto-generates React StyleSheets from import statements of CSS files at compile time. Once you clone the repo, you should be able to run the example project as below.

babel-plugin-transform-assets-import-to-string - Babel plugin that transforms image assets import and requires to urls / cdn

  •    Javascript

This babel plugin allows you to transform asset files into a string uri, allowing you to point your assets to CDN or other hosts, without needing to run your code through module bundlers. This helps when doing isomorphic / server-rendered applications.

babel-plugin-system-import-transformer - import() & System

  •    Javascript

Add "system-import-transformer" to your plugins argument or inside the plugins options of your Gruntfile. The babel's getModuleId option (if defined) is used for the AMD and Global Module import.


babel-plugin-optional-require - Babel plugin to optionaly require modules

  •    Javascript

Babel plugin to optionaly require modules. Useful with a bundler like Metro which doesn't support optional require statements. This is primarily useful if you want add an dependency to your library that's optional and you want users to be able to opt-out of it to save bundle size. You can also use it in apps to load configuration files only if they exist.