Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/taro-vite-runner/src/h5/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { getSassLoaderOption } from '@tarojs/runner-utils'
import { isBoolean, isNumber, isObject, isString, PLATFORM_TYPE } from '@tarojs/shared'
import { get } from 'lodash'
import { searchForWorkspaceRoot } from "vite"

Check failure on line 7 in packages/taro-vite-runner/src/h5/config.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (macos-13)

Strings must use singlequote

Check failure on line 7 in packages/taro-vite-runner/src/h5/config.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 20.x (ubuntu-latest)

Strings must use singlequote

Check failure on line 7 in packages/taro-vite-runner/src/h5/config.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js (windows-latest)

Strings must use singlequote

Check failure on line 7 in packages/taro-vite-runner/src/h5/config.ts

View workflow job for this annotation

GitHub Actions / Testing on Node.js 18.x (ubuntu-latest)

Strings must use singlequote

import { getDefaultPostcssConfig } from '../postcss/postcss.h5'
import { addTrailingSlash, getCSSModulesOptions, getMinify, getMode, getPostcssPlugins, isVirtualModule } from '../utils'
Expand Down Expand Up @@ -141,7 +142,7 @@
fsStrict = serverOption.fs.strict
}

let fsAllow: string[] = []
let fsAllow: string[] = [searchForWorkspaceRoot(process.cwd())]
if (serverOption.fs && Array.isArray(serverOption.fs.allow)) {
fsAllow = serverOption.fs.allow
Comment thread
DreamOfIce marked this conversation as resolved.
Comment thread
DreamOfIce marked this conversation as resolved.
}
Expand Down
Loading