chore: prettier
This commit is contained in:
parent
f438d49f55
commit
a809901535
5
.prettierrc
Normal file
5
.prettierrc
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "none",
|
||||
"semi": false
|
||||
}
|
@ -7,6 +7,6 @@
|
||||
|
||||
<script setup>
|
||||
defineComponent({
|
||||
name: 'HostComponent'
|
||||
name: "HostComponent"
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user