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

Saga-icons: Switch to ESM #84875

Merged
merged 1 commit into from Mar 26, 2024
Merged

Saga-icons: Switch to ESM #84875

merged 1 commit into from Mar 26, 2024

Conversation

Clarity-89
Copy link
Contributor

What is this feature?

Build the icons package as an ESM module.

Which issue(s) does this PR fix?:

@Clarity-89 Clarity-89 added this to the 11.0.x milestone Mar 21, 2024
@Clarity-89 Clarity-89 self-assigned this Mar 21, 2024
@Clarity-89 Clarity-89 requested review from a team as code owners March 21, 2024 07:46
@Clarity-89 Clarity-89 requested review from academo, joshhunt, JoaoSilvaGrafana and jackw and removed request for a team March 21, 2024 07:46
@Clarity-89 Clarity-89 added the no-changelog Skip including change in changelog/release notes label Mar 21, 2024
@@ -6,8 +6,8 @@ module.exports = {
typescript: true,
jsxRuntime: 'automatic',
outDir: './src/icons-gen',
template: require('./templates/icon'),
indexTemplate: require('./templates/index'),
template: require('./templates/icon.cjs'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Svgr doesn't support ESM config files, so we need to use cjs extension.

@grafana-pr-automation grafana-pr-automation bot removed the request for review from a team March 21, 2024 07:51
@Clarity-89 Clarity-89 merged commit 0f68587 into main Mar 26, 2024
28 checks passed
@Clarity-89 Clarity-89 deleted the icons/esm branch March 26, 2024 11:58
@grafana-delivery-bot grafana-delivery-bot bot modified the milestones: 11.0.x, 11.1.x Mar 26, 2024
@ashharrison90 ashharrison90 modified the milestones: 11.1.x, 11.0.0-preview Apr 15, 2024
@ashharrison90 ashharrison90 added product-approved Pull requests that are approved by product/managers and are allowed to be backported backport v11.0.x Mark PR for automatic backport to v11.0.x labels Apr 15, 2024
grafana-delivery-bot bot pushed a commit that referenced this pull request Apr 15, 2024
(cherry picked from commit 0f68587)
ashharrison90 pushed a commit that referenced this pull request Apr 15, 2024
Saga-icons: Switch to ESM (#84875)

(cherry picked from commit 0f68587)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend backport v11.0.x Mark PR for automatic backport to v11.0.x no-changelog Skip including change in changelog/release notes product-approved Pull requests that are approved by product/managers and are allowed to be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants