mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(nuxt): transpile app.config
files in nitro build (#27342)
This commit is contained in:
parent
faa5178d32
commit
40c81a722a
@ -161,6 +161,8 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
'nuxt3/dist',
|
||||
'nuxt-nightly/dist',
|
||||
distDir,
|
||||
// Ensure app config files have auto-imports injected even if they are pure .js files
|
||||
...nuxt.options._layers.map(layer => resolve(layer.config.srcDir, 'app.config')),
|
||||
],
|
||||
traceInclude: [
|
||||
// force include files used in generated code from the runtime-compiler
|
||||
|
@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line no-undef
|
||||
export default defineAppConfig({
|
||||
userConfig: 123,
|
||||
nested: {
|
Loading…
Reference in New Issue
Block a user