Open horasikus opened 6 years ago
Thanks, this does sound like a bug with conditional resolutions and rollup compatibility. I don't have a lot of time at the moment to look into it right now unfortunately, but if you'd be interested in exploring it yourself I could certainly help point in the right direction.
Hello, when I try to compile with conditional boolean in true and rollup enabled I am getting follow error:
I already checked similar issues 339 and 549 but it seems a new issue because now ENV is well resolved only throwing this exception when the condition is true. If i disable rollup the bundle is ok.
src/env.conditions.js (it is not used by the builder static, only for dev mode)
jspm.config.js
src/app.js
src/employee.mock.js
gulpfile.js
package.json
I tried command line with the same results. I'm using latest jspm 0.17.0-beta.42.
This issue only happens building the static bundle; jspm+systemjs in dev mode (load modules as separate files with ES6 in the browser) work as expected (playing with the condition in src/env.conditions.js). Also only fails with output format is esm.