Skip to content

Decaffination + Modernize import/export  #715

Description

@aminya

Method

Decaffeination can be done easily using:

decaffeinate . --use-js-modules --loose

or without automatic import/export

decaffeinate . --loose

or without loose modifications (the safest but worst looking)

decaffeinate .

We need to run either of those and then fix the linkage of modules manually. We don't need to use import/export, but it will help to reduce excess deps in Webpack.

Why

  • Webpack build fails because of coffee files Webpack #714.
  • Helps TypeScript

Side-Note

There is also bulk-decaffeinate that automatically searches for connections, but it doesn't work well on Windows (I couldn't get it to work).

https://github.com/decaffeinate/bulk-decaffeinate
decaffeinate/bulk-decaffeinate#265

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions