Nasty Pinguin Manure

    babel-plugin-replace-import-extensions

    1.0.1 • Public • Published

    A babel plugin to replace import extensions

    How to use

    add blow to babelrc file

    module.exports = {
      plugins: [
        ['replace-import-extensions', {
          '.(js|jsx|ts|tsx)$': ''
          // key is a string for match
          // value is a string to replace which matched
        }]
      ]
    }

    Install

    npm i babel-plugin-replace-import-extensions

    DownloadsWeekly Downloads

    8

    Version

    1.0.1

    License

    none

    Unpacked Size

    14.5 kB

    Total Files

    4

    Last publish

    Collaborators

    • wengzp