Skip to content

rollup watch broken  #38

@Waxolunist

Description

@Waxolunist

When using the plugin the watch mode is broken. My webworker is written with ts.

My config looks like this:

resolve(),
  workerLoader({inline: false, sourcemap: false}),
  typescript({
    sourceMap: true,
    exclude: ['node_modules', '**/*.test.ts'],
  }),

The watch mode executes the build, but the files generated are the same as before.
The workaround currently used is this:

npm run clean && rollup -c && chokidar 'src/**/*.*' -c 'rollup -c'

But the builds are only half as fast as with rollup watchmode enabled.

My repository is this:
https://github.com/Waxolunist/paint2

To reproduce start the watchmode and the devserver:

`npm bin`/rollup -cw
npm run serve

When changing a file (e.g. changing the html in paint-app.ts) the changes are not written to the bundle directory.
Commenting out the workerLoader plugin in rollup.config.js changes are picked up immediately, so I assume the workerLoader plugin is something doing to the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions