javascript-obfuscator / javascript-obfuscator/webpack-obfuscator
Vue 3 project strange behaviors
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 928
- Forks
- 92
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I'm not quite sure how to structure this issue, so here it goes.
I created a Vue 3 project with webpack and typescript, then modified the `vue.config.js` file and tested some options. **I'm not sure if there is a function name or a file I'm expected to exclude somehow.**
Seed is 0, most of the time I get console errors, sometimes it works in different ways.
```
const WebpackObfuscator = require('webpack-obfuscator');
module.exports = {
transpileDependencies: true,
configureWebpack: {
plugins: [
new WebpackObfuscator({
compact: true,
rotateStringArray: true
})
]
}
};
```
Seed 9055:

Seed 905555:

Seed 221155
Page empty: Console error:
`Uncaught DOMException: Document.querySelector: 'style[data-vue-ssr-id~=\x22449b31f0:0\x22]' is not a valid selector`
With more options:
```
new WebpackObfuscator({
compact: true,
identifierNamesGenerator: 'mangled-shuffled',
rotateStringArray: true,
seed: 0,
selfDefending: true,
shuffleStringArray: true,
simplify: true,
stringArray: true,
stringArrayIndexesType: [
'hexadecimal-number'
],
stringArrayEncoding: ['base64'],
stringArrayIndexShift: true,
stringArrayWrappersCount: 1,
stringArrayWrappersChainedCalls: true,
stringArrayWrappersParametersMaxCount: 2,
stringArrayWrappersType: 'variable',
stringArrayThreshold: 0.75,
target: 'browser',
})
```
Console error `Uncaught TypeError: can't access property "charAt", G is undefined`

Am I missing something I should be doing ? Or is it an issue with webpack-obfuscator?
Might be related to #123
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la configuración del proyecto Vue 3 indicada en vue.config.js y reproduce los fallos de la consola usando las opciones y las seeds de webpack-obfuscator mostradas. Compara el error del selector y el error de charAt entre las distintas configuraciones y, después, revisa la discusión o los hallazgos del issue relacionado #123. Se considera terminado cuando se identifica una incompatibilidad reproducible o una exclusión/configuración específica que evita los fallos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript, webpack
- Área
- build-system, frontend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100