Closed swashbuck closed 1 year ago
When building a new course, the uglify task fails with the following message:
Uglifying source build/offline_API_wrapper.js failed Warning: Uglification failed. Unexpected token: punc «.». Line 79 in build/offline_API_wrapper.js
adapt create course
grunt build
Successful build
Uglification task fails.
I believe it was caused by commit 479c2d. In required/offline_API_wrapper.js, lines 79 and 133 use the ES6 style Optional Chaining feature.
required/offline_API_wrapper.js
Will need to bump the fw version required by spoor once the above pr is in.
Subject of the issue/enhancement/features
When building a new course, the uglify task fails with the following message:
Your environment
Steps to reproduce
adapt create course
grunt build
Expected behaviour
Successful build
Actual behaviour
Uglification task fails.
Potential cause
I believe it was caused by commit 479c2d. In
required/offline_API_wrapper.js
, lines 79 and 133 use the ES6 style Optional Chaining feature.