We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10b2495 commit cf9ace1Copy full SHA for cf9ace1
1 file changed
packages/vite/src/node/plugins/css.ts
@@ -2962,10 +2962,14 @@ const makeStylWorker = (maxWorkers: number | undefined) => {
2962
{
2963
shouldUseFake(_stylusPath, _content, _root, options) {
2964
// define can include functions and those are not serializable
2965
- // in that case, fallback to running in main thread
+ // Evaluator is always a function
2966
+ // in those cases, fallback to running in main thread
2967
return !!(
- options.define &&
2968
- Object.values(options.define).some((d) => typeof d === 'function')
+ (options.define &&
2969
+ Object.values(options.define).some(
2970
+ (d) => typeof d === 'function',
2971
+ )) ||
2972
+ options.Evaluator
2973
)
2974
},
2975
max: maxWorkers,
0 commit comments