bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
192 stars 90 forks source link

BabelJS Engine compilation error #327

Open leandroidvlab opened 1 year ago

leandroidvlab commented 1 year ago

Hi, I have a problem with BabelJs Engine. When I try to compile my application, I got this error:

java.util.concurrent.ExecutionException: java.lang.Exception: BabelJs Engine compilation of javascript failed: SyntaxError: This experimental syntax requires enabling the parser plugin: 'nullishCoalescingOperator' (2:32234) in at line number 77 at column number 539565 --

My gradle.build:

assets {
    packagePlugin = true
    enableGzip = false
    minifyJs = false
    minifyCss = true
    developmentRuntime = true
}

Tried to put minifyJs to false, packagePlugin to false and nobody works. Have any configuration to disable Babel JS or enable this experimental syntax nullishCoalescingOperator ?

leandroidvlab commented 1 year ago

I fixed that puting code below in the build.gradle

assets {
    configOptions = [
        enableES6: false
    ]
}