comment-loader | a wepback loader using comment to do precompilation work

 by   WJsjtu JavaScript Version: Current License: MIT

kandi X-RAY | comment-loader Summary

kandi X-RAY | comment-loader Summary

comment-loader is a JavaScript library. comment-loader has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

a wepback loader using comment to do precompilation work. ###install npm install --save-dev comment-loader. ###why we need it? conditional code is not allowed in es6+, this means you cannot use if-else or switch-case structure to enable/disable some modules. however if some precompilation work can be performed before webpack pass your code to babel or other es transformers, the problem can be solved easily. macro like c-style macro can be a way to do all this. ###what different? some macro loaders can already be found on github or npm. however, they usually cause some side-effects. using macro directly will break the syntax which will cause big problem if the loader is not available. here i use the hack on comments and babylon parser to detect the define macro. using comments is a way to lower the side-effects as many as possible, though it still bother ide sometimes. comments are not force to be at the beginning of the line, since babylon can always detect ast correctly. another important reason why i use babylon is that i hope the comments can do more in future. maybe i'll let loader support simple
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              comment-loader has a low active ecosystem.
              It has 1 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              comment-loader has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of comment-loader is current.

            kandi-Quality Quality

              comment-loader has no bugs reported.

            kandi-Security Security

              comment-loader has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              comment-loader is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              comment-loader releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of comment-loader
            Get all kandi verified functions for this library.

            comment-loader Key Features

            No Key Features are available at this moment for comment-loader.

            comment-loader Examples and Code Snippets

            No Code Snippets are available at this moment for comment-loader.

            Community Discussions

            No Community Discussions are available at this moment for comment-loader.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install comment-loader

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/WJsjtu/comment-loader.git

          • CLI

            gh repo clone WJsjtu/comment-loader

          • sshUrl

            git@github.com:WJsjtu/comment-loader.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular JavaScript Libraries

            freeCodeCamp

            by freeCodeCamp

            vue

            by vuejs

            react

            by facebook

            bootstrap

            by twbs

            Try Top Libraries by WJsjtu

            react-datepicker

            by WJsjtuJavaScript

            react-ui-select

            by WJsjtuJavaScript

            three-water

            by WJsjtuJavaScript

            socket-control

            by WJsjtuC

            react-upload

            by WJsjtuJavaScript