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
https://github.com/pYr0x/slim-multimain/tree/not-working : same principle, but now i added canjs5 to it. in _shared.js i import import {ajax} from "can"; and in second main i import import {DefineMap} from "can";. the apps breaks. main1.js:107 Uncaught (in promise) TypeError: Cannot read property 'call' of undefined . Moduls 6 is not in modulesMap.
it would be nice if this problem will be solved. slim loader runs as twice as fast as steal.
The text was updated successfully, but these errors were encountered:
Setting treeShaking: false in the BuildOptions does not turn off the client-side tree-shaking. @pYr0x as a stop-gap you can add "treeShaking": false in your package.json steal config and it will disable it in both places, and this will work.
The tree-shaking is removing a module, can/core I believe. Looking into why.
i give the slim loader a try and want to use it in my multimain app,
we had an issue with multimain #823 and @m-mujica solved it.
but now i have a more complex app and it the slim-loader breaks.
the problem are shared dependencies.
i created an example app.
_shared.js
i importimport {ajax} from "can";
and in second main i importimport {DefineMap} from "can";
. the apps breaks.main1.js:107 Uncaught (in promise) TypeError: Cannot read property 'call' of undefined
. Moduls6
is not inmodulesMap
.it would be nice if this problem will be solved. slim loader runs as twice as fast as steal.
The text was updated successfully, but these errors were encountered: