No Princess, Mario

    gatsby-plugin-coffeescript

    5.5.0 • Public • Published

    gatsby-plugin-coffeescript

    Provides drop-in support for CoffeeScript and CJSX.

    Install

    npm install gatsby-plugin-coffeescript

    How to use

    1. Include the plugin in your gatsby-config.js file.
    2. 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")

    Install

    npm i gatsby-plugin-coffeescript

    DownloadsWeekly Downloads

    117

    Version

    5.5.0

    License

    MIT

    Unpacked Size

    34.6 kB

    Total Files

    9

    Last publish

    Collaborators

    • kathmbeck
    • j0sh77
    • dschau
    • kylemathews
    • pieh
    • wardpeet
    • tylerbarnes
    • fk
    • smthomas
    • lekoarts
    • rachelbahl
    • daniellewgatsby