Fix error in build
parent
b4cb91f593
commit
e4622bd3ff
|
@ -1,7 +1,11 @@
|
|||
import { hexToHSL } from './hexToHSL'
|
||||
import getSimulationData from './pages/Simulateurs/metadata-src'
|
||||
import { absoluteSitePaths } from './sitePaths'
|
||||
|
||||
const simulationData = getSimulationData((_, text) => text)
|
||||
const simulationData = getSimulationData(
|
||||
(_, text) => text,
|
||||
absoluteSitePaths.fr
|
||||
)
|
||||
|
||||
const script = document.currentScript
|
||||
const moduleName = script.dataset.module || 'simulateur-embauche'
|
||||
|
|
|
@ -83,6 +83,7 @@ export interface PageConfig {
|
|||
|
||||
simulation?: SimulationConfig
|
||||
component?: () => JSX.Element
|
||||
lazyComponent?: LazyExoticComponent<FC<unknown>>
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
lazyComponent?: LazyExoticComponent<FC<any>>
|
||||
seoExplanations?: JSX.Element
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ import salaireBrutNetPreviewEN from './images/SalaireBrutNetPreviewEN.png'
|
|||
import salaireBrutNetPreviewFR from './images/SalaireBrutNetPreviewFR.png'
|
||||
import urlIllustrationNetBrutEn from './images/illustration-net-brut-en.png'
|
||||
import urlIllustrationNetBrut from './images/illustration-net-brut.png'
|
||||
import getData from './metadata-src.js'
|
||||
import getData from './metadata-src'
|
||||
|
||||
export interface SimulatorsDataParams {
|
||||
t: TFunction
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MetadataSrc } from 'pages/Simulateurs/metadata-src'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
import { MetadataSrc } from '@/pages/Simulateurs/metadata-src'
|
||||
import { LegalStatus } from '@/selectors/companyStatusSelectors'
|
||||
|
||||
export const LANDING_LEGAL_STATUS_LIST: Array<LegalStatus> = [
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
import yaml from '@rollup/plugin-yaml'
|
||||
import path from 'path'
|
||||
import { defineConfig } from 'vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: [{ find: '@', replacement: path.resolve('./source') }],
|
||||
},
|
||||
build: {
|
||||
lib: {
|
||||
entry: './source/iframe-integration-script.js',
|
||||
|
@ -10,4 +16,5 @@ export default defineConfig({
|
|||
},
|
||||
emptyOutDir: false,
|
||||
},
|
||||
plugins: [yaml(), VitePWA({ disable: true })],
|
||||
})
|
||||
|
|
|
@ -16,7 +16,7 @@ const env = (mode: string) => loadEnv(mode, process.cwd(), '')
|
|||
|
||||
export default defineConfig(({ command, mode }) => ({
|
||||
resolve: {
|
||||
alias: { '@': path.resolve('./source') },
|
||||
alias: [{ find: '@', replacement: path.resolve('./source') }],
|
||||
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
|
||||
},
|
||||
publicDir: 'source/public',
|
||||
|
|
Loading…
Reference in New Issue