Vue 3 project strange behaviors

Đang mở
#126 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript, webpack
Lĩnh vực
build-system, frontend

Hướng nghiên cứu

Bắt đầu với cấu hình dự án Vue 3 được báo cáo trong vue.config.js và tái hiện các lỗi trên console bằng các tùy chọn và seed của webpack-obfuscator đã nêu. So sánh lỗi selector và lỗi charAt giữa các cấu hình, sau đó xem lại phần thảo luận hoặc các phát hiện trong issue liên quan #123. Hoàn thành khi xác định được một điểm không tương thích có thể tái hiện hoặc một cấu hình/loại trừ cụ thể ngăn các lỗi xảy ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:
image

Seed 905555:
image

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

image

Am I missing something I should be doing ? Or is it an issue with webpack-obfuscator?
Might be related to #123

Ngôn ngữ chính
TypeScript
Star
930
Fork
92
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của javascript-obfuscator/webpack-obfuscator

Tất cả issue của javascript-obfuscator/webpack-obfuscator

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.