@@ -3,29 +3,29 @@ import react from '@vitejs/plugin-react';
33import { resolve } from 'path' ;
44
55// https://vitejs.dev/config/
6- // export default defineConfig({
7- // plugins: [react()],
8- // build: {
9- // lib: {
10- // // Could also be a dictionary or array of multiple entry points
11- // entry: resolve(__dirname, 'src/app.tsx'),
12- // name: 'hexlet-flowbot',
13- // // the proper extensions will be added
14- // fileName: 'hexlet-flowbot',
15- // },
16- // rollupOptions: {
17- // external: ['react', 'react-dom'],
18- // output: {
19- // globals: {
20- // react: 'React',
21- // 'react-dom': 'ReactDOM',
22- // },
23- // },
24- // },
25- // },
26- // })
27-
286export default defineConfig ( {
297 plugins : [ react ( ) ] ,
30- base : '/react-flowbot-ui-kit/'
31- } )
8+ build : {
9+ lib : {
10+ // Could also be a dictionary or array of multiple entry points
11+ entry : resolve ( __dirname , 'src/app.tsx' ) ,
12+ name : 'hexlet-flowbot' ,
13+ // the proper extensions will be added
14+ fileName : 'hexlet-flowbot' ,
15+ } ,
16+ rollupOptions : {
17+ external : [ 'react' , 'react-dom' ] ,
18+ output : {
19+ globals : {
20+ react : 'React' ,
21+ 'react-dom' : 'ReactDOM' ,
22+ } ,
23+ } ,
24+ } ,
25+ } ,
26+ } )
27+
28+ // export default defineConfig({
29+ // plugins: [react()],
30+ // base: '/react-flowbot-ui-kit/'
31+ // })
0 commit comments