Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot read property of undefined reading sourceAndMap #160

Open
young-ren opened this issue Apr 11, 2023 · 0 comments
Open

cannot read property of undefined reading sourceAndMap #160

young-ren opened this issue Apr 11, 2023 · 0 comments

Comments

@young-ren
Copy link

Obfuscator version used: 4.0.2
Node version used: 16.13.2
Webpack-obfuscator used: 3.5.1

private extractSourceAndSourceMap(asset: any): { inputSource: string, inputSourceMap: RawSourceMap } {
if (asset.sourceAndMap) { // this place
const { source, map } = asset.sourceAndMap();
return { inputSource: source, inputSourceMap: map };
} else {
return {
inputSource: asset.source(),
inputSourceMap: asset.map()
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant