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

[v5] [icons] fix static icon component size, remove built-in webpack loaders #6222

Merged
merged 9 commits into from
Jun 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix paths in webpack-loaders
adidahiya committed Jun 14, 2023

Verified

This commit was signed with the committer’s verified signature.
citizenmatt Matt Ellis
commit 91ae5e0d631a1b4b9f70bbe2a3880ff15033c112
4 changes: 2 additions & 2 deletions packages/icons/src/webpack-loaders/webpackEagerPathsLoader.ts
Original file line number Diff line number Diff line change
@@ -29,13 +29,13 @@ export const webpackEagerPathsLoader: IconPathsLoader = async (name, size) => {
/* webpackChunkName: "blueprint-icons-16px" */
/* webpackInclude: /\.js$/ */
/* webpackMode: "eager" */
`./generated/16px/paths/${name}`
`../generated/16px/paths/${name}`
)
: await import(
/* webpackChunkName: "blueprint-icons-20px" */
/* webpackInclude: /\.js$/ */
/* webpackMode: "eager" */
`./generated/20px/paths/${name}`
`../generated/20px/paths/${name}`
)
).default;
};
Original file line number Diff line number Diff line change
@@ -29,13 +29,13 @@ export const webpackLazyOncePathsLoader: IconPathsLoader = async (name, size) =>
/* webpackChunkName: "blueprint-icons-16px" */
/* webpackInclude: /\.js$/ */
/* webpackMode: "lazy-once" */
`./generated/16px/paths/${name}`
`../generated/16px/paths/${name}`
)
: await import(
/* webpackChunkName: "blueprint-icons-20px" */
/* webpackInclude: /\.js$/ */
/* webpackMode: "lazy-once" */
`./generated/20px/paths/${name}`
`../generated/20px/paths/${name}`
)
).default;
};
4 changes: 2 additions & 2 deletions packages/icons/src/webpack-loaders/webpackLazyPathsLoader.ts
Original file line number Diff line number Diff line change
@@ -29,13 +29,13 @@ export const webpackLazyPathsLoader: IconPathsLoader = async (name, size) => {
/* webpackChunkName: "blueprint-icons-16px" */
/* webpackInclude: /\.js$/ */
/* webpackMode: "lazy" */
`./generated/16px/paths/${name}`
`../generated/16px/paths/${name}`
)
: await import(
/* webpackChunkName: "blueprint-icons-20px" */
/* webpackInclude: /\.js$/ */
/* webpackMode: "lazy" */
`./generated/20px/paths/${name}`
`../generated/20px/paths/${name}`
)
).default;
};