ESM build of @mdi/js.
@mdi/js is a great package, but it is only CJS:
This package will use the same @mdi/svg version number.
There is no guarantee that this package will be updated to the latest version of @mdi/svg, feel free to file an issue if you want to request an update.
Install:
# pnpm
pnpm add mdi-js-es
# npm
npm i mdi-js-es
# yarn
yarn add mdi-js-es
Import:
// ESM
import { /* icons */ } from 'mdi-js-es'
// CommonJS
const { /* icons */ } = require('mdi-js-es')