chore: prettier

This commit is contained in:
antony 2024-12-21 07:53:23 +07:00
parent f438d49f55
commit a809901535
4 changed files with 23 additions and 18 deletions

5
.prettierrc Normal file
View File

@ -0,0 +1,5 @@
{
"tabWidth": 2,
"trailingComma": "none",
"semi": false
}

View File

@ -7,6 +7,6 @@
<script setup>
defineComponent({
name: 'HostComponent'
name: "HostComponent"
})
</script>
</script>

View File

@ -1,22 +1,22 @@
import { defineNuxtConfig } from 'nuxt/config'
import federation from '@originjs/vite-plugin-federation'
import { defineNuxtConfig } from "nuxt/config"
import federation from "@originjs/vite-plugin-federation"
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
compatibilityDate: "2024-04-03",
devtools: { enabled: false },
ssr: false,
vite: {
plugins: [
federation({
name: 'host-app',
name: "host-app",
remotes: {
remote: 'http://localhost:3001/_nuxt/remoteEntry.js',
},
remote: "http://localhost:3001/_nuxt/remoteEntry.js"
}
// shared: ['vue']
})
],
build: {
target: 'esnext'
target: "esnext"
}
}
})
})

View File

@ -1,24 +1,24 @@
import { defineNuxtConfig } from 'nuxt/config'
import federation from '@originjs/vite-plugin-federation'
import { defineNuxtConfig } from "nuxt/config"
import federation from "@originjs/vite-plugin-federation"
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
compatibilityDate: "2024-04-03",
devtools: { enabled: false },
ssr: false,
vite: {
plugins: [
federation({
name: 'remote-app',
filename: 'remoteEntry.js',
name: "remote-app",
filename: "remoteEntry.js",
exposes: {
'./RemoteComponent': './components/RemoteComponent.vue'
"./RemoteComponent": "./components/RemoteComponent.vue"
},
shared: []
// shared: ['vue']
})
],
build: {
target: 'esnext'
target: "esnext"
}
}
})
})