fix hmr test errors
This commit is contained in:
@@ -27,9 +27,9 @@ func TestDevServerAssetURL(t *testing.T) {
|
||||
[]byte(`import u from "pdfjs-dist/build/pdf.worker.min.mjs?url";
|
||||
export const url = u;`), 0o644)
|
||||
|
||||
eps, _ := loadVendorManifest(filepath.Join(frontendAbs, "vendor"))
|
||||
eps, _ := loadVendorManifest([]string{filepath.Join(frontendAbs, "vendor")})
|
||||
d := &devServer{hub: newHub(), frontend: frontendAbs, srcRoot: tmpSrc,
|
||||
vendor: filepath.Join(frontendAbs, "vendor"), graph: newModuleGraph(),
|
||||
vendorDirs: []string{filepath.Join(frontendAbs, "vendor")}, graph: newModuleGraph(),
|
||||
vendorCache: map[string][]byte{}, cssTrigger: make(chan struct{}, 1), vendorEntrypoints: eps}
|
||||
|
||||
out, err := d.transformModule(filepath.Join(tmpSrc, "uses-worker.tsx"))
|
||||
|
||||
Reference in New Issue
Block a user