8000 Quantum bug · Issue #1184 · fuse-box/fuse-box · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
This repository was archived by the owner on Jun 20, 2023. It is now read-only.
Quantum bug #1184
Closed
Closed
@leon-andria

Description

@leon-andria

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0