Description
Hi, I have a very annoying issue with quantum,
This is the index.ts code I have
(async () => {
const moment = await import("moment")
console.log(moment);
})();
Now with this simple standard config
const sharedFuseConfig = {
homeDir: `src`,
cache: true,
modulesFolder: `${__dirname}/node_modules/`,
plugins: [
QuantumPlugin({
target : 'browser',
bakeApiIntoBundle : 'app',
manifest : true,
containedAPI : false,
removeExportsInterop : false,
replaceTypeOf:false,
removeUseStrict : false,
ensureES5 : false
})
],
output: `./dist/$name.js`
};
Now when I do node fuse, everything is fine and fuse creates a split bundle for momentjs
but now if I modify my index.ts
and save it fuse watcher kicks again but now I get an empty momentjs
splitted file like this:
(function($fsx){
})($fsx);
The only way around this is to stop the fuse process everytime I change my local code and restart so quantum will create a none empty split momentjs
file.
So to explain better, what is happening is that with quantum enabled, it works and kicks but it creates empty split files and you have to restart fuse process in order to avoid this issue. Which is something I don’t want at all, because for me I want to see my production result immediately and I don’t want to go through the dev vs production process. That is why I enabled quantum by default.