mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 22:59:10 +00:00
test(optimizer): remove long named file that cause OS error on Windows (#14608)
This commit is contained in:
parent
40fd2d9bf4
commit
cd82648b0f
@ -241,7 +241,7 @@ test.runIf(isBuild)('no missing deps during build', async () => {
|
||||
test('name file limit is 170 characters', async () => {
|
||||
if (isServe) {
|
||||
const response = page.waitForResponse(
|
||||
/@vitejs_longfilename_\w+_[a-zA-Z\d]+\.js\?v=[a-zA-Z\d]+/,
|
||||
/@vitejs_longfilename-\w+_[a-zA-Z\d]+\.js\?v=[a-zA-Z\d]+/,
|
||||
)
|
||||
await page.goto(viteTestUrl)
|
||||
const content = await response
|
||||
|
@ -1,4 +1,4 @@
|
||||
import test from '@vitejs/longfilename/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
|
||||
import test from '@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/index'
|
||||
|
||||
const main = document.querySelector('.long-file-name')
|
||||
main.innerHTML = test ?? 'failed to import'
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@vitejs/longfilename",
|
||||
"name": "@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"main": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.js",
|
||||
"main": "index.js",
|
||||
"type": "module"
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"axios": "^1.5.1",
|
||||
"clipboard": "^2.0.11",
|
||||
"@vitejs/longfilename": "file:./longfilename",
|
||||
"@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa": "file:./longfilename",
|
||||
"@vitejs/test-dep-alias-using-absolute-path": "file:./dep-alias-using-absolute-path",
|
||||
"@vitejs/test-dep-cjs-browser-field-bare": "file:./dep-cjs-browser-field-bare",
|
||||
"@vitejs/test-dep-cjs-compiled-from-cjs": "file:./dep-cjs-compiled-from-cjs",
|
||||
|
@ -798,7 +798,7 @@ importers:
|
||||
|
||||
playground/optimize-deps:
|
||||
dependencies:
|
||||
'@vitejs/longfilename':
|
||||
'@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa':
|
||||
specifier: file:./longfilename
|
||||
version: file:playground/optimize-deps/longfilename
|
||||
'@vitejs/test-added-in-entries':
|
||||
@ -10385,7 +10385,7 @@ packages:
|
||||
|
||||
file:playground/optimize-deps/longfilename:
|
||||
resolution: {directory: playground/optimize-deps/longfilename, type: directory}
|
||||
name: '@vitejs/longfilename'
|
||||
name: '@vitejs/longfilename-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
|
||||
dev: false
|
||||
|
||||
file:playground/optimize-deps/nested-exclude:
|
||||
|
Loading…
Reference in New Issue
Block a user