Wondering what’s next for npm?Check out our public roadmap! »

    craco-purescript-loader

    1.0.1 • Public • Published

    Craco purescript-loader

    MIT License

    This is a craco plugin to add purs-loader with create-react-app.

    It allows you to use PureScript code in create-react-app without ejecting.

    Installation

    npm install craco-purescript-loader --save-dev
    # or 
    yarn add -D craco-purescript-loader

    Usage

    const cracoPureScriptLoader = require("craco-purescript-loader");
     
    module.exports = {
      plugins: [{ plugin: cracoPureScriptLoader }],
    };

    Overwrite Options

    craco-purescript-loader configuration options will overwrite purs-loader options.

    const cracoPureScriptLoader = require("craco-purescript-loader");
     
    module.exports = {
      plugins: [
        {
          plugin: cracoPureScriptLoader,
          options: {
            spago: true,
            pscIde: false,
          },
        },
      ],
    };

    Example

    Example create-react-app project with PureScript using craco and this plugin.

    Install

    npm i craco-purescript-loader

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.47 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar