Skip to content

Latest commit

 

History

History
 
 

comment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)