Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Custom rollup config breaks file watcher #59

@cmaart

Description

@cmaart

When using a custom a custom rollup config, it gets loaded with require in util.fillConfigDefaults and the dest property is set on this config object in bundle.runBundle. This works fine the first time. When bundleUpdate is called from the watcher, the same instance is returned by require and the dest is set like this in bundle.runBundle:
rollupConfig.dest = join(context.buildDir, rollupConfig.dest);

Because it's always the same instance of rollupConfig, this will append to the dest with each watch trigger, leading to wrong paths.

See a detailed post about it here with screenshots: https://forum.ionicframework.com/t/having-a-custom-rollup-config-breaks-the-watcher/65343

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions