Closed CatchABus closed 2 years ago
@DimitrisRK how are you facing this ? using the alpha i 5 apps and never stumbled upon this
@farfromrefug It seems it's a bug that occurs under certain conditions.
In my app, I use import()
or require()
with dynamic expressions. See here: https://webpack.js.org/api/module-methods/#dynamic-expressions-in-import
It looks like this kind of imports makes CLI in latest alpha release go crazy and complain about regular expressions, which makes no sense. Could this be a bug in latest v8 or webpack?
@DimitrisRK could you share a repro sample ?
Environment
Describe the bug It seems that V8 complains about regular expressions. The first problem I stepped into was related to a regular expression in NativeScript Color module:
I shrinked regular expression manually but error persisted.
To Reproduce Import
@nativescript/core/color
module. It makes use of hex regular expression inside helper functions likeisValid
.Expected behavior CLI should not complain about regular expression.
Additional context There is a google bug report related to this issue here: https://groups.google.com/g/v8-reviews/c/9BbASYhUAmQ Also, there is a reference of V8 regarding work on regular expression size handling: https://chromium.googlesource.com/v8/v8/+/c9b71fac463dacde93fcc5ad77f56ba6ad7eeae6