Skip to content

CommonJs vs ES6 #1351

Closed
Closed
@robmoffat

Description

For Background:

@Lecss @kriswest and I built the "combined" @finos/fdc3 module in the FDC3 repo, combining all the other modules. For now, this uses ES6 module structure, rather than the FDC3 rollup approach used originally.

However, the original FDC3 module was commonJS. I'm not sure of the ins and outs of this, so:

  1. Is it backwards incompatible to move to ES6? Or does Javascript correctly handle both?
  2. ES6 import seems like the way we want to go forward is this the right time to change?
  3. If we have an old, legacy CJS module, should we expect people to import the monorepo's submodules e.g. fdc3-context? This seems unlikely to work given the amount of literature around the old version.

I want to open this up for further discussion as I'm not an expert on this.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    apiFDC3 API Working GroupquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions