Giter Site home page Giter Site logo

parcel-plugin-handlebars-precompile's People

Contributors

belicekm avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

parcel-plugin-handlebars-precompile's Issues

Custom helpers

Is it possible to write your own custom handlebars helpers for this plugin? In case it is, how would I go abour doing that?

Thank you for your wok on this plugin, it works wonderfully for me +1

Compatibility with node.js

Hi. When I use plugin in browser enviroment it's ok. But when I use it in node.js it says 'TypeError: templateFunction_hbs_1.default is not a function'
I use it this way "import templateFunction from './template.hbs';"
In console (in Node.js) I'm given undefined, but in browser I'm given a function...
Can you help me?

It uses anchor (a) tag href values as imports?

I have an error pointing to the content of an anchor tag in an HBS file.

Cannot resolve dependency 'handlebars/dist/handlebars.runtime'
   6 |     </button>
   7 |     <a class="navbar-brand" href="/">Link Label</a>
>  8 |   </div>
     |                                               ^

Security vulnerabilities found

                       === npm audit security report ===                        
                                                                                
                                                                                
                                 Manual Review                                  
             Some vulnerabilities require your attention to resolve             
                                                                                
          Visit https://go.npm.me/audit-guide for additional guidance           
                                                                                
                                                                                
  Moderate        Denial of Service                                             
                                                                                
  Package         js-yaml                                                       
                                                                                
  Patched in      >=3.13.0                                                      
                                                                                
  Dependency of   parcel-plugin-handlebars-precompile [dev]                     
                                                                                
  Path            parcel-plugin-handlebars-precompile > parcel-bundler >        
                  htmlnano > cssnano > postcss-svgo > svgo > js-yaml            
                                                                                
  More info       https://nodesecurity.io/advisories/788                        
                                                                                
                                                                                
  High            Code Injection                                                
                                                                                
  Package         js-yaml                                                       
                                                                                
  Patched in      >=3.13.1                                                      
                                                                                
  Dependency of   parcel-plugin-handlebars-precompile [dev]                     
                                                                                
  Path            parcel-plugin-handlebars-precompile > parcel-bundler >        
                  htmlnano > cssnano > postcss-svgo > svgo > js-yaml            
                                                                                
  More info       https://nodesecurity.io/advisories/813                        
                                                                                
                                                                                
  High            Prototype Pollution                                           
                                                                                
  Package         handlebars                                                    
                                                                                
  Patched in      >=4.0.14 <4.1.0 || >=4.1.2                                    
                                                                                
  Dependency of   parcel-plugin-handlebars-precompile [dev]                     
                                                                                
  Path            parcel-plugin-handlebars-precompile > handlebars              
                                                                                
  More info       https://nodesecurity.io/advisories/755                        
                                                                                
found 3 vulnerabilities (1 moderate, 2 high) in 18304 scanned packages

Compatibility with parcel 1.12.x

When building using globally installed [email protected] there is following error related to source maps generation:

ร—  D:\projects\test-parcel-plugin-static-js\test.hbs: "version" is a required argument.
    at Object.getArg (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\source-map\lib\util.js:24:11)
    at new BasicSourceMapConsumer (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\source-map\lib\source-map-consumer.js:294:22)
    at new SourceMapConsumer (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\source-map\lib\source-map-consumer.js:22:7)
    at SourceMap.getConsumer (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\SourceMap.js:38:12)
    at SourceMap.extendSourceMap (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\SourceMap.js:149:29)
    at JSAsset.generate (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\assets\JSAsset.js:159:50)
    at JSAsset.process (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\Asset.js:216:35)

Compatibility with "parcel-plugin-handlebars"

Currently, if I try to set the parcel build target to "index.hbs" (which compiles to HTML using parcel-plugin-handlebars), there is no index.html file that renders and I get a 404 when I try to browse the served site.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.