Skip to content

Commit

Permalink
import type with import type
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Apr 9, 2024
1 parent 4678bea commit 6082a00
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app-shell-odd/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { versionForProject } from '../scripts/git-version.mjs'
import pkg from './package.json'
import path from 'path'
import { UserConfig, defineConfig } from 'vite'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import postCssImport from 'postcss-import'
import postCssApply from 'postcss-apply'
import postColorModFunction from 'postcss-color-mod-function'
import postCssPresetEnv from 'postcss-preset-env'
import lostCss from 'lost'
import type {UserConfig} from 'vite'

export default defineConfig(
async (): Promise<UserConfig> => {
Expand Down
3 changes: 2 additions & 1 deletion app-shell/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { versionForProject } from '../scripts/git-version.mjs'
import pkg from './package.json'
import path from 'path'
import { UserConfig, defineConfig } from 'vite'
import { defineConfig } from 'vite'
import type { UserConfig } from 'vite'

export default defineConfig(
async (): Promise<UserConfig> => {
Expand Down
3 changes: 2 additions & 1 deletion app/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import path from 'path'
import { UserConfig, defineConfig } from 'vite'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import postCssImport from 'postcss-import'
import postCssApply from 'postcss-apply'
import postColorModFunction from 'postcss-color-mod-function'
import postCssPresetEnv from 'postcss-preset-env'
import lostCss from 'lost'
import { versionForProject } from '../scripts/git-version.mjs'
import type { UserConfig } from 'vite'

export default defineConfig(
async(): Promise<UserConfig> => {
Expand Down
5 changes: 3 additions & 2 deletions discovery-client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { versionForProject } from '../scripts/git-version.mjs'
import pkg from './package.json'
import path from 'path'
import { UserConfig, defineConfig } from 'vite'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import postCssImport from 'postcss-import'
import postCssApply from 'postcss-apply'
import postColorModFunction from 'postcss-color-mod-function'
import postCssPresetEnv from 'postcss-preset-env'
import lostCss from 'lost'

import type { UserConfig } from 'vite
'
export default defineConfig(
async (): Promise<UserConfig> => {
const project = process.env.OPENTRONS_PROJECT ?? 'robot-stack'
Expand Down
3 changes: 2 additions & 1 deletion protocol-designer/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import path from 'path'
import { UserConfig, defineConfig } from 'vite'
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import postCssImport from 'postcss-import'
import postCssApply from 'postcss-apply'
import postColorModFunction from 'postcss-color-mod-function'
import postCssPresetEnv from 'postcss-preset-env'
import lostCss from 'lost'
import { versionForProject } from '../scripts/git-version.mjs'
import type { UserConfig } from 'vite'

const testAliases: {} | { 'file-saver': string } =
process.env.CYPRESS === '1'
Expand Down

0 comments on commit 6082a00

Please sign in to comment.