Skip to content

Conversation

@ashnaarya
Copy link
Contributor

@ashnaarya ashnaarya commented Jan 31, 2025

Resolves SIG-41705

create-react-app is deprecated and we should start having customers use vite for setting up their plugins instead. actions-sample-plugin is already using vite. Migrating clustering-map.

Mainly followed config from actions-sample-plugin, vite is on major version 6 now though so not sure if i need to change anything?

@ashnaarya ashnaarya changed the title [Plugins] Migrate clustering-map to vite [Plugins] Migrate clustering-map from CRA to vite Jan 31, 2025
@netlify
Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for sigma-org-chart canceled.

Name Link
🔨 Latest commit 608c9dc
🔍 Latest deploy log https://app.netlify.com/sites/sigma-org-chart/deploys/679c1a8e3d661400087e4d93

<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed due to vitejs/vite#6482

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "ES2020",
Copy link
Contributor Author

@ashnaarya ashnaarya Jan 31, 2025

Choose a reason for hiding this comment

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

These next two files are copied from actions-sample-plugin. Should we use ESNext instead of ES2020?

Choose a reason for hiding this comment

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

Lets just copy the actions sample plugin for now. I think a good task would be to refactor this whole repo to use shared configuration files so that we don't have to do this for each example.

Copy link
Contributor

Choose a reason for hiding this comment

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

The ES version shouldn't make a big difference here, but probably just safer to do ES2020 so the version is consistent

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense, leaving as is for now

"strict": true
},
"include": ["vite.config.ts"]
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need this file? I added since thats how the actions-sample-plugin has it set up, but not sure what exactly its purpose is

Choose a reason for hiding this comment

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

If you don't include it, TS wont typecheck on it

Choose a reason for hiding this comment

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

Oh, you meant the whole file. I think its fine to keep

@ashnaarya ashnaarya changed the title [Plugins] Migrate clustering-map from CRA to vite [Vite] Migrate clustering-map from CRA to vite Jan 31, 2025
"strict": true
},
"include": ["vite.config.ts"]
}

Choose a reason for hiding this comment

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

Oh, you meant the whole file. I think its fine to keep

@ashnaarya ashnaarya merged commit 2587ca9 into main Feb 3, 2025
5 checks passed
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.

4 participants