mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
518d149646
commit
723ec555e7
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue