Skip to content

Preprocess config not working (postcss, babel, etc) #2277

@yuanchuan

Description

@yuanchuan

Describe the bug

The preprocess config breaks after version 1.0.0-next.146

This issue is probably caused by #2137. After small investigation I found the error happens only when no cache is detected and vite tries to rebuild everyting with config.

https://github.com/vitejs/vite/blob/fb406ce4c0fe6da3333c9d1c00477b2880d46352/packages/vite/src/node/build.ts#L385-L387

Reproduction

https://github.com/yuanchuan/sveltekit-issues/tree/main/preprocess-not-working

Logs

No response

System Info

System:
    OS: macOS 11.1
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Memory: 390.95 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.5.0 - ~/.nvm/versions/node/v16.5.0/bin/node
    Yarn: 1.3.2 - /usr/local/bin/yarn
    npm: 7.19.1 - ~/.nvm/versions/node/v16.5.0/bin/npm
  Browsers:
    Chrome: 92.0.4515.159
    Edge: 92.0.902.78
    Firefox: 72.0.2
    Firefox Nightly: 92.0a1
    Safari: 14.0.2
    Safari Technology Preview: 14.2
  npmPackages:
    @sveltejs/kit: 1.0.0-next.146 => 1.0.0-next.146
    svelte: 3.42.1 => 3.42.1

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-edge-caseSvelteKit cannot be used in an uncommon wayvite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions