decky icon indicating copy to clipboard operation
decky copied to clipboard

SyntaxError: Unexpected token '.'

Open JonnyVaine opened this issue 3 years ago • 0 comments

I have an experiemental decorator in my code, and it's breaking my esbuild. I've added this plugin as mentioned:

image

but I get the following error:

let entryPoints = additionalConfig?.entryPoints?.length ? additionalConfig.entryPoints : await import_fast_glob.default(decoratorGlob);
                                   ^

SyntaxError: Unexpected token '.'
   at wrapSafe (internal/modules/cjs/loader.js:915:16)
   at Module._compile (internal/modules/cjs/loader.js:963:27)
   at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
   at Module.load (internal/modules/cjs/loader.js:863:32)
   at Function.Module._load (internal/modules/cjs/loader.js:708:14)
   at Module.require (internal/modules/cjs/loader.js:887:19)
   at require (internal/modules/cjs/helpers.js:74:18)
   at Object.<anonymous> (C:\projects\lv\esbuild-config.js:2:18)
   at Module._compile (internal/modules/cjs/loader.js:999:30)
   at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Am I missing something in the config?

JonnyVaine avatar May 26 '22 09:05 JonnyVaine