Fix: Resolver error '../pkg' en build Docker
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m3s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m3s
This commit is contained in:
@@ -33,6 +33,11 @@ export function disableImportProtection(): Plugin {
|
||||
return emptyModulePath
|
||||
}
|
||||
|
||||
// Stub problematic relative pkg imports (WASM/native packages)
|
||||
if (id === '../pkg' || id.includes('../pkg?')) {
|
||||
return emptyModulePath
|
||||
}
|
||||
|
||||
// Stub Node.js built-in modules for client bundle
|
||||
const nodeModules = ['fs', 'path', 'url', 'fs/promises']
|
||||
const nodePrefix = ['node:url', 'node:module', 'node:fs', 'node:path']
|
||||
|
||||
Reference in New Issue
Block a user