arcvision 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/src/core/parser.js +2 -2
package/dist/index.js
CHANGED
|
@@ -56271,8 +56271,9 @@ var require_parser = __commonJS({
|
|
|
56271
56271
|
let ast;
|
|
56272
56272
|
try {
|
|
56273
56273
|
ast = parser.parse(content, {
|
|
56274
|
-
sourceType: "
|
|
56275
|
-
|
|
56274
|
+
sourceType: "unambiguous",
|
|
56275
|
+
// Auto-detect between script and module
|
|
56276
|
+
plugins: ["jsx", "typescript", "classProperties", "dynamicImport", "decorators-legacy"]
|
|
56276
56277
|
});
|
|
56277
56278
|
} catch (error) {
|
|
56278
56279
|
throw error;
|
package/package.json
CHANGED
package/src/core/parser.js
CHANGED
|
@@ -9,8 +9,8 @@ function parseFile(filePath) {
|
|
|
9
9
|
|
|
10
10
|
try {
|
|
11
11
|
ast = parser.parse(content, {
|
|
12
|
-
sourceType: '
|
|
13
|
-
plugins: ['jsx', 'typescript', 'classProperties', 'dynamicImport']
|
|
12
|
+
sourceType: 'unambiguous', // Auto-detect between script and module
|
|
13
|
+
plugins: ['jsx', 'typescript', 'classProperties', 'dynamicImport', 'decorators-legacy']
|
|
14
14
|
});
|
|
15
15
|
} catch (error) {
|
|
16
16
|
// Re-throw the error to be handled by the scanner
|