JS code transpilation is exporting everything as an AMD module. Write code like this:
// myModule.js
export default function myModule() {
console.log(`Hello`);
}
Use it in the browser as such:
require(['myModule'], function(myModule) {
myModule();
})
For admin UI styling to work you need to add <link rel="stylesheet" href="/styles/site.css">
to the end of the <head>
of node_modules/keystone/admin/server/templates/index.html
.