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>
|
<script setup>
|
||||||
defineComponent({
|
defineComponent({
|
||||||
name: 'HostComponent'
|
name: "HostComponent"
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
Loading…
Reference in New Issue
Block a user