Skip to content

Add import support as commonJS #3

Description

@Gamment

Hello
I'm using webpack to bundle my TS project into a single JS file for k6 to execute.
The k6/x/sql/driver/sqlserver module can be successfully imported as ESM with import driver from 'k6/x/sql/driver/sqlserver' syntax. However the ESM import * as driver from 'k6/x/sql/driver/sqlserver' syntax that webpack enforces leads to driver being undefined, as does the commonJS syntax too.
Would you please add support for additional import syntax such as commonJS?
Thank You

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