Skip to content

Stub import doesn't work #59

@marco-prontera

Description

@marco-prontera

When I use the stub by following the documentation with:
import * as cmpstub from "@iabgpp/stub";
then execute:
cmpstub();
I receive errors relative to the stub module code that does not provide an export named 'default', so it can't be used in a esm context.
I think a solution can be to follow the tcf stub module code and config that works well on old and recent projects: https://github.com/InteractiveAdvertisingBureau/iabtcf-es/tree/master/modules/stub

Metadata

Metadata

Assignees

No one assigned

    Labels

    reviewedFor library maintainers only. Indicates that this issue was reviewed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions