You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running bankai start app.js should build the file(s) bundle-[#].js for the lazily loaded asset.
Running bankai build app.js should build the file(s) bundle-[#].js for the lazily loaded asset.
Current Behavior
The bundle-[#].js file(s) are accessible via HTTP requests after running bankai start app.js.
The bundle-[#].js file(s) are not present in dist after running bankai build app.js
There is no error.
Context
It's obviously possible this is more related to split-require than bankai, but the fact that bankai start app.js works while bankai build app.js does not makes me think otherwise.
var html = require('choo/html')
var app = require('choo')()
var splitRequire = require('split-require')
app.route('/', mainView)
app.mount('body')
var component
function mainView () {
return html`<body>
<h1>Loading</h1>
</body>`
}
splitRequire('split-require', function (err, exports) {
console.log(err, exports)
app.emitter.emit('render')
})
Your Environment
Software
Version(s)
Package
bankai@9.11.1, split-require@3.1.0
Runtime
node@8.9.4, node@6.14.1
Package Manager
npm@5.8.0, npm@3.10.10
Operating System
macOS 10.13.04
The text was updated successfully, but these errors were encountered:
When #443 was merged, it moved the list of dynamic bundle names to a
metadata property on the `scripts:bundle` node. However, the `bankai
build` command was never updated to match.
this a 🐛 bug report
Expected Behavior
Running
bankai start app.js
should build the file(s)bundle-[#].js
for the lazily loaded asset.Running
bankai build app.js
should build the file(s)bundle-[#].js
for the lazily loaded asset.Current Behavior
The
bundle-[#].js
file(s) are accessible via HTTP requests after runningbankai start app.js
.The
bundle-[#].js
file(s) are not present indist
after runningbankai build app.js
There is no error.
Context
It's obviously possible this is more related to
split-require
thanbankai
, but the fact thatbankai start app.js
works whilebankai build app.js
does not makes me think otherwise.Code Sample
I am able to reproduce this with my code as well as the sample code from https://github.com/goto-bus-stop/split-require#what
package.json
app.js
Your Environment
The text was updated successfully, but these errors were encountered: