Skip to content

require without .default no longer supported #22

@dgdavid

Description

@dgdavid

Hi! 👋

Version 1.1.1 added the support for requiring the package without the need of using .default.

I think this is no longer the case in 2.0.10, most probably due to changes made at c2007d3

At least I had to switch back to

-ReactRefreshTypeScript()
+ReactRefreshTypeScript.default()

to avoid webpack complaning because

ERROR in ./src/index.tsx
Module build failed (from ./node_modules/ts-loader/index.js):
TypeError: ReactRefreshTypeScript is not a function
    at getCustomTransformers (/home/dgdavid/development/suse/agama/web/webpack.config.js:168:41)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions