Skip to content

Commit

Permalink
Showing 3 changed files with 20 additions and 129 deletions.
119 changes: 0 additions & 119 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -83,7 +83,6 @@
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vite-plugin-externals": "^0.6.2",
"vite-tsconfig-paths": "^4.2.1",
"viz.js": "^2.1.2"
},
29 changes: 20 additions & 9 deletions packages/table/vite.config.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import { defineConfig } from 'vite';
import { visualizer } from 'rollup-plugin-visualizer';
// Used from @storybook/react-vite dependencies
import react from '@vitejs/plugin-react';
import { viteExternalsPlugin } from 'vite-plugin-externals';

/** @type {import('vite').UserConfig} */
export default defineConfig({
@@ -14,6 +13,26 @@ export default defineConfig({
name: 'index',
fileName: 'index',
},
rollupOptions: {
external: [
'react',
'@devoinc/genesys-ui',
'styled-components',
'@tanstack/react-virtual',
'date-fns',
'date-fns-tz',
],
output: {
globals: {
react: 'React',
'styled-components': 'styled',
'@devoinc/genesys-ui': 'genesysUi',
'@tanstack/react-virtual': 'ReactVirtual',
'date-fns': 'dateFns',
'date-fns-tz': 'dateFnsTz',
},
},
},
},
plugins: [
react({
@@ -34,13 +53,5 @@ export default defineConfig({
visualizer({
filename: 'dist/stats.html',
}),
viteExternalsPlugin({
react: 'React',
'styled-components': 'styled',
'@devoinc/genesys-ui': 'genesysUi',
'@tanstack/react-virtual': 'reactVirtual',
'date-fns': 'dateFns',
'date-fns-tz': 'dateFnsTz',
}),
],
});

0 comments on commit ebf4fd4

Please sign in to comment.