Skip to content

ESM vs CJS presentation of samples ; preference is ESM  #3577

Description

@xhyabunny

https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blame/2c008f81febaacb568eebfcc0f158c9215f8139b/translate/translate.js#L20

require is outdated, you guys should change it to Import.

people working with new frameworks like react.js/vite can not use stuff like "require" on their code

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

    samplesIssues that are directly related to samples.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions