Skip to content

Confirm compatibility between @rollup/plugin-typescript and @web/dev-server #2168

Closed
@ouweiya

Description

@ouweiya

The documentation mentions that @rollup/plugin-typescript does not work properly. However, after trying to use @rollup/plugin-typescript in @web/dev-server, I found no errors and it seems to work as expected.

Here is the code:

import typescript from '@rollup/plugin-typescript';
const ts = fromRollup(typescript);

export default {
  ...
  plugins: [ts()],
};

Is this due to an update in the packages, but the documentation has not been updated yet?
Or is it because some features of TypeScript are not supported?

The problem encountered at the moment is that during the development process, TypeScript compilation is slower than page refresh, causing the page to display data from the previous iteration.

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