Importing Pure ESM Package?
Answered
Asiatic Lion posted this in #help-forum
Asiatic LionOP
Trying to import https://www.npmjs.com/package/change-case but they updated it to esm and directly importing gives me
Attempted import error: 'capitalize' is not exported from 'change-case' (imported as 'capitalize'). What settings or something do I need to change to import this?3 Replies
Asiatic LionOP
anyone know?
experimental.esmExternals: 'loose'
Answer
in your next config