astro-auto-import

Auto-import components in Astro projects

Downloads
65.4K
Stars
90
Committers
5

Bot releases are visible (Hide)

astro-auto-import - [email protected] Latest Release

Published by github-actions[bot] 11 months ago

Patch Changes

  • 13b07e1: Support Astro v4
astro-auto-import - [email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

  • 5b9b278: Improve README
astro-auto-import - [email protected]

Published by github-actions[bot] 11 months ago

Minor Changes

  • ec5f241: Added support for namespace imports, for importing all named exports from a module.

    AutoImport({
      imports: [
        {
          // Import all named exports from a module as a namespace
          // generates:
          // import * as Components from './src/components';
          './src/components': 'Components',
        },
      ],
    }),
    

Patch Changes

  • ea93946: refactor: strip out old “exposures” code
astro-auto-import - [email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

  • 8baeeae: Fix Windows compatibility
astro-auto-import - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • 75f332a: Add support for Astro 3.0.0 incl. prereleases
astro-auto-import - [email protected]

Published by github-actions[bot] over 1 year ago

Warning
This release includes breaking changes.
The minimum required Astro version is now 2.0 and auto-imports only work in MDX.

Minor Changes

  • ad941b0: Drop support for auto-importing in .astro files
  • ad941b0: Drop support for Astro v1
astro-auto-import - [email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • 9c5c1d2: Allow installation in Astro v2 projects
astro-auto-import - [email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • aa42e19: Add support for @astrojs/mdx 🎉

    Auto-imports will now also be injected in .mdx files. You may need to remove manual imports if you were already using astro-auto-import v0.1.x with MDX.

  • 795e08e: Update to Astro v1 — remember to enable legacy.astroFlavoredMarkdown if you’re using components in .md files

astro-auto-import - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • db1ac29: Internal: assign imports to globalThis instead of global — H/T @natemoo-re 🙌
astro-auto-import - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • c28efdf: Document extended imports config syntax
  • 075bfa2: Only resolve module identifiers that start with .
  • b89fcbb: Add support for named imports & import aliasing
astro-auto-import - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

  • b0d94cb: Initial release