JSPM

@jsep-plugin/comment

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1773
  • Score
    100M100P100Q116839F
  • License MIT

Adds comment expression support

Package Exports

  • @jsep-plugin/comment
  • @jsep-plugin/comment/dist/cjs/index.cjs.js
  • @jsep-plugin/comment/dist/index.js

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 (@jsep-plugin/comment) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm size

@jsep-plugin/comment

A JSEP plugin for adding comment expression support. Allows expressions of the form:

jsep('a = 2 // end of line comment');
jsep('a /* ignore this */ += 2');
jsep('a /* ignore \n this */ ++');

Install

npm install @jsep-plugin/comment
# or
yarn add @jsep-plugin/comment

Usage

import jsep from 'jsep';
import jsepComment from '@jsep-plugin/comment';
jsep.plugins.register(jsepComment);

Meta

LICENSE (MIT)