Skip to content

Commit

Permalink
fix: vite config, unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
eshankvaish committed Jan 31, 2024
1 parent 36db07e commit da5ade8
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 60 deletions.
41 changes: 0 additions & 41 deletions src/Common/EmptyState/EmptyState.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/Common/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from 'react'
import EmptyState from './EmptyState/EmptyState'
import notAuthorized from '../Assets/Img/ic-not-authorized.svg'
import ErrorScreenNotFound from './ErrorScreenNotFound'
import { ERROR_EMPTY_SCREEN } from './Constants'
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SelectComposition, SelectProps, OptionGroupProps, SelectAsync } from '.

import arrowTriangle from '../../Assets/Icon/ic-chevron-down.svg' // '../../../assets/icons/ic-chevron-down.svg'

import './select.css'
import './select.scss'
import PopupMenu from '../PopupMenu'
import { showError } from '../Helper'

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/Common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export * from './MultiSelectCustomization'
export { default as InfoColourBar } from './InfoColorBar/InfoColourbar'
export * from './Common.service'
export * from './Checkbox'
export { default as EmptyState } from './EmptyState/EmptyState'
export { default as GenericEmptyState } from './EmptyState/GenericEmptyState'
export * from './SearchBar'
export { default as Toggle } from './Toggle/Toggle'
Expand Down
17 changes: 1 addition & 16 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,11 @@ export default defineConfig({
},
rollupOptions: {
external: [...Object.keys(packageJson.peerDependencies)],
input: Object.fromEntries(
// https://rollupjs.org/configuration-options/#input
glob.sync('src/**/!(*.d).{ts,tsx}').map(file => [
// 1. The name of the entry point
// lib/nested/foo.js becomes nested/foo
relative(
'src',
file.slice(0, file.length - extname(file).length)
),
// 2. The absolute path to the entry file
// lib/nested/foo.ts becomes /project/lib/nested/foo.ts
fileURLToPath(new URL(file, import.meta.url))
])
),
input: './src/index.ts',
output: {
assetFileNames: 'assets/[name][extname]',
entryFileNames: '[name].js',
}
}
}
})


0 comments on commit da5ade8

Please sign in to comment.