1.0.1 • Published 5 years ago
babel-plugin-replace-import-extensions v1.0.1
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
}]
]
}