JSPM

grunt-swc

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 470
  • Score
    100M100P100Q90765F
  • License MIT

Compile JavaScript via SWC

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (grunt-swc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    grunt-swc

    Install

    $ npm install --save-dev grunt-swc @swc/core
    # or
    $ yarn add --dev grunt-swc @swc/core

    Usage

    Option with load-grunt-tasks

    require("load-grunt-tasks")(grunt); // npm install --save-dev load-grunt-tasks
    
    grunt.initConfig({
      swc: {
        options: {
          sourceMaps: true,
        },
        dist: {
          files: {
            "dist/app.js": "src/app.js",
          },
        },
      },
    });
    
    grunt.registerTask("default", ["swc"]);

    Option with loadNpmTasks

    grunt.initConfig({
      swc: {
        options: {
          sourceMaps: true,
        },
        dist: {
          files: {
            "dist/app.js": "src/app.js",
          },
        },
      },
    });
    
    grunt.loadNpmTasks("grunt-swc");
    
    grunt.registerTask("default", ["swc"]);

    Options

    See the SWC options.

    License

    WWWWWW||WWWWWW
     W W W||W W W
          ||
        ( OO )__________
         /  |           \
        /o o|    MIT     \
        \___/||_||__||_|| *
             || ||  || ||
            _||_|| _||_||
           (__|__|(__|__|

    Code and documentation are available according to the MIT License (see LICENSE).