Socket
Book a DemoInstallSign in
Socket

gatsby-plugin-coffeescript

Package Overview
Dependencies
Maintainers
7
Versions
446
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-coffeescript

Adds CoffeeScript support for Gatsby

latest
Source
npmnpm
Version
5.15.0
Version published
Weekly downloads
69
-80.67%
Maintainers
7
Weekly downloads
 
Created
Source

gatsby-plugin-coffeescript

Provides drop-in support for CoffeeScript and CJSX.

Install

npm install gatsby-plugin-coffeescript

How to use

  • Include the plugin in your gatsby-config.js file.
  • Write your components in CJSX or CoffeeScript.
// in gatsby-config.js
plugins: [
  // no configuration
  `gatsby-plugin-coffeescript`,
  // custom configuration
  {
    resolve: `gatsby-plugin-coffeescript`,
    // options are passed directly to the compiler
    options: {},
  },
]

Notes

First, note that CoffeeScript + React is a troubled combination. This plugin relies upon deprecated modules that may someday prove to be dysfunctional or otherwise deficient.

Furthermore, note that the installed version of CoffeeScript is @next. This is not optional - named exports are required for page queries to work properly.

You will need to manually edit your coffee-loader installation and install coffeescript separately in your project directory to ensure that CoffeeScript@next is being loaded. The very first line of source in the former's index.js should be the following: note the lack of dash.

var coffee = require("coffeescript")

Keywords

coffeescript

FAQs

Package last updated on 27 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts