babel-plugin-replace-import-extensions

v1.0.0
A babel plugin to replace import extensions
babel plugin import extensions

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
    }]
  ]
}

Metadata

Downloads

Maintainers