Skip to content

Provide a way to use module script in MDN Playground Javascript code #1754

Description

@beaufortfrancois

I'd like to use the import keyword in MDN Playground Javascript code but it currently fails with SyntaxError: Cannot use import statement outside a module.
Is there something hidden like js live-sample_example module I could use by any chance?

This is blocking me from updating MDN documentation page. Here's my workaround for now: mdn/content#44981

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