Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(@angular/build): support image-file loader import attribute type #28055

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clydin
Copy link
Member

@clydin clydin commented Jul 15, 2024

An additional loader import attribute value specialized for image files (loader: "image-file") is now available. This loader type is intended for use with the AOT compiler's optimized image instruction. It provides the same behavior as the file type with the addition of two named exports for the width and height of the image. The image-size package is used internally to determine image dimensions and all image types support by that package are also supported here. This loader type is currently not considered part of the public API and is only intended for use by the AOT compiler at this time.

…type

An additional `loader` import attribute value specialized for image files
(`loader: "image-file"`) is now available. This loader type is intended for use
with the AOT compiler's optimized image instruction. It provides the same
behavior as the `file` type with the addition of two named exports for the
width and height of the image. The `image-size` package is used internally
to determine image dimensions and all image types support by that package
are also supported here. This loader type is currently not considered part
of the public API and is only intended for use by the AOT compiler at this
time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant