In v3.1.0 I linted the code base with standardjs and also changed var to const, expecting it to be transpiled back in the dist build anyway. As it happens that happens for all but two files 🙄
The files in src/components/countdown/lib weren't transpiled and had a weird require path to them so that components in dist could refer to them back in the src folder. This beartrap continued to work, but the const declarations in that file weren't transpiled, breaking the tripapp uglify step.
This PR makes sure all the src files are transpiled by adding some special case logic to the build script.
In v3.1.0 I linted the code base with standardjs and also changed var to const, expecting it to be transpiled back in the dist build anyway. As it happens that happens for all but two files 🙄
The files in
src/components/countdown/lib
weren't transpiled and had a weird require path to them so that components in dist could refer to them back in the src folder. This beartrap continued to work, but the const declarations in that file weren't transpiled, breaking the tripapp uglify step.This PR makes sure all the src files are transpiled by adding some special case logic to the build script.