Skip to content

[How To] Use with rollup #106

Description

@daniloribeiro00

I have a library that relies on ttypescript with rollup and, since it's now officially deprecated, I'm looking into a solution.

The way I use ttypescript is like it's docs (https://github.com/cevek/ttypescript#rollup), with rollup-plugin-typescript2

// rollup.config.js
import ttypescript from 'ttypescript'
import tsPlugin from 'rollup-plugin-typescript2'

export default {
    // ...
    plugins: [
        // ...
        tsPlugin({
            typescript: ttypescript
        })
    ]
}

Since ts-patch docs says it is "Fully compatible with legacy ttypescript projects" I tried to just swap them but it didn't work.
Maybe I'm missing something...

Can anyone help please?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions