Compiled JS is different after updating Bud from 6.12.3 to 6.14.3. I’ve re-read the Bud documentation, but didn’t find (or missed!) a solution. Perhaps someone here can help.
assets/scripts/test.js
console.log('Working');
Bud 6.12.3 bud build
compiles to:
(()=>{"use strict";console.log("Working")})();
Bud 6.14.3 bud build
compiles to:
"use strict";
(self.webpackChunk_roots_bud = self.webpackChunk_roots_bud || []).push([[43], {
"./scripts/test.js": ()=>{
console.log("Working")
}
}, s=>{
var t;
t = "./scripts/test.js",
s(s.s = t)
}
]);
The 6.12.3 compiled file runs as expected in the browser; the 6.14.3 compiled file shows no messages in the console.
bud.config.js
export default async app => {
/**
* The bud.js instance
*/
app
/**
* Paths
*/
.setPath({
'@src': `assets`,
})
/**
* Application entrypoints
* Paths are expressed relative to the `@src` directory
*/
.entry({
test: ['scripts/test'],
})
}