bpi

babel-plugin-import-auto-name

Babel plugin to auto-expand nameless imports

Showing:

Popularity

Downloads/wk

25

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

babel-plugin-import-auto-name

A babel plugin to automatically expand nameless imports.

Description

Instead of redudantly importing the same name as the file, you’ll be able to just import the file.

Here’s a simple example:

// Instead of using this:
import { thing } from 'some/thing';

// You can just use:
import 'some/thing';

Conditions

The plugin has a few conditions requires to auto-expand the name:

  1. The import command can not specify any names (duh)
  2. A forward slash is required (as not to intefere with regular modules)
  3. No file extension can be specified

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial