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

Change Vite config from CJS to ESM #1992

Merged
merged 8 commits into from
Nov 25, 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
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
// limitations under the License.
Copy link
Member

Choose a reason for hiding this comment

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

  • are the *.mts files included in our linter?
  • instead of renaming the file, why not add "type": "module" to ./packages/jaeger-ui/package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

are the *.mts files included in our linter?

no they arent.. forgot to check that.

yeah you are right that would be better. making the change...


/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from 'vite';
import { PluginOption, defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import legacy from '@vitejs/plugin-legacy';
import vitePluginImp from 'vite-plugin-imp';
import visualizer from 'rollup-plugin-visualizer';
import {visualizer} from 'rollup-plugin-visualizer';

const proxyConfig = {
target: 'http://localhost:16686',
Expand Down Expand Up @@ -57,7 +57,7 @@ export default defineConfig({
exclude: ['lodash'],
}),
// Generate a bundle size breakdown.
visualizer(),
visualizer() as PluginOption,
],
css: {
preprocessorOptions: {
Expand Down