URI: 
       Fix Babel on Windows - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 723ec555e75fbfa94d90d3ecbcd5775d6c7800e1
   DIR parent 518d149646c13fb49c296a63e61a048f5e672179
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Mon, 18 May 2020 15:56:43 +0200
       
       Fix Babel on Windows
       
       Fixes #7251
       
       Diffstat:
         M resources/resource_transformers/ba… |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/resources/resource_transformers/babel/babel.go b/resources/resource_transformers/babel/babel.go
       @@ -98,8 +98,8 @@ func (t *babelTransformation) Key() internal.ResourceTransformationKey {
        // npm install -g @babel/preset-env
        // Instead of installing globally, you can also install everything as a dev-dependency (--save-dev instead of -g)
        func (t *babelTransformation) Transform(ctx *resources.ResourceTransformationCtx) error {
       -        const localBabelPath = "node_modules/@babel/cli/bin/"
       -        const binaryName = "babel.js"
       +        const localBabelPath = "node_modules/.bin/"
       +        const binaryName = "babel"
        
                // Try first in the project's node_modules.
                csiBinPath := filepath.Join(t.rs.WorkingDir, localBabelPath, binaryName)