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> <script setup>
defineComponent({ defineComponent({
name: 'HostComponent' name: "HostComponent"
}) })
</script> </script>

View File

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

View File

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