109 Commits

Author SHA1 Message Date
Dylan Piercey
c41cda53c8 refactor: avoid config deduping via global (it has not been working since Marko 4 anyway and is probably bad) 2023-03-24 09:07:13 -07:00
Dylan Piercey
7d5dab41c3 feat: support declared ts class members, remove extra export in stripTypes mode 2023-03-21 12:58:29 -07:00
Dylan Piercey
cceab7d206 fix: loosen babel parse errors 2023-03-21 11:00:29 -07:00
Michael Rawlings
ac1d5062a7
fix: modify/remove some inefficient regexes (#1916)
* fix: modify/remove some inefficient regexes
2023-03-17 13:34:06 -04:00
Dylan Piercey
4fc38e8001 feat: expose ability to intercept taglib errors 2023-02-28 16:16:14 -07:00
Dylan Piercey
d110b0b5f6 chore: improve typescript support 2023-02-17 16:10:23 -07:00
Dylan Piercey
f1efd707aa
feat: add taglib extensions and type definitions for typescript support (#1885)
* feat: add taglib extensions and type definitions for typescript support

* [ci] format

---------

Co-authored-by: DylanPiercey <DylanPiercey@users.noreply.github.com>
2023-02-10 15:58:52 -07:00
Dylan Piercey
797e904893
feat: rename default attr (#1865) 2022-11-02 10:11:58 -07:00
Dylan Piercey
e648094582
Improve tag scanning perf (#1860)
* fix: improve tag dir scanning cache (#1859)

(cherry picked from commit 412e2eb77a57772dfd619756b40d962425332748)

* chore: update htmljs-parser
2022-10-12 11:31:35 -07:00
Dylan Piercey
7608246596
fix: auto enable hmr mode when using browser-refresh client and @marko/compiler/register (#1855) 2022-09-27 21:11:34 -07:00
Dylan Piercey
76771598e8
fix: improve support for @lasso/marko-taglib and @marko/compiler/register (#1853) 2022-09-27 16:15:31 -07:00
Dylan Piercey
63161abed5
fix: source map for shorthand attr methods (#1837) 2022-07-30 14:39:34 -07:00
Dylan Piercey
efd6da2358
fix: tag variable type definitons (#1830) 2022-07-26 11:18:35 -07:00
Dylan Piercey
e285cbbd10
feat: support removing typescript types (#1826) 2022-07-26 08:19:57 -07:00
Dylan Piercey
2f6459d2c4
fix: issue with return statement inside attr method shorthand (#1824) 2022-07-18 15:59:20 -07:00
Dylan Piercey
b11f9d076f
chore: upgrade htmljs-parser (#1814) 2022-06-22 10:02:13 -07:00
Dylan Piercey
49ef9801b5
chore: upgrade htmljs-parser (#1811) 2022-06-20 14:17:10 -07:00
Dylan Piercey
04adc2d24e
fix: attr method shorthand source map position (#1806) 2022-06-04 21:15:16 -07:00
Michael Rawlings
c352de67ec
fix: update deps, inline babel helper removed from latest version (#1800)
* fix: update deps, inline babel helper removed from latest version
2022-05-17 13:55:50 -04:00
Dylan Piercey
123b9a8c7a
New parser (#1786)
* feat: integrate new parser
2022-04-26 13:46:27 -07:00
Michael Rawlings
cd496964c1 fix: type for BabelFile.markoConfig now reflects defaulted values 2022-04-26 11:40:37 -04:00
Michael Rawlings
d3278640db fix: set cache entry before analysis to prevent infinite recursion 2022-04-26 00:41:52 -04:00
Dylan Piercey
28aa2e84c1
fix(translator-default): string literals in dynamic tags incorrectly doing component lookup 2022-04-14 15:17:29 -07:00
Michael Rawlings
5eda8f388a fix: autoloading translators 2022-04-11 15:00:55 -04:00
Dylan Piercey
258b7bf0ed
Bundler improvements (#1782)
* refactor: native taglibs us js format instead of json

* fix: avoid using webpacks enhanced resolve as the default fs
2022-03-24 13:20:48 -07:00
Dylan Piercey
981f7f39f9
feat: support analyze field in marko.json (#1769) 2022-01-28 12:48:19 -07:00
Dylan Piercey
9d86540a37
fix: issue with dynamic tag names not tracking references 2022-01-13 20:06:06 -07:00
Dylan Piercey
32f382bb0d
fix: hoisted variable scopes clean up 2021-11-17 09:38:54 -07:00
Dylan Piercey
91b3c58559
fix: upgrade babel deps & fix builder regression 2021-10-30 11:55:23 -07:00
Dylan Piercey
a8d85d7771
fix: regression with identical tag name & taglib deduping
(cherry picked from commit 3da701c0f101ae064c943faf0a908b674992b845)
2021-10-22 11:51:00 -07:00
Dylan Piercey
86310e6039 fix: normalize file opts similar to babel 2021-09-29 15:08:11 -07:00
Dylan Piercey
20e3cf42aa
fix: attribute shorthand method source locations 2021-09-05 13:07:58 -07:00
Dylan Piercey
ff07eadde2
fix: consistent file.opts during parse & other stages 2021-09-05 12:50:07 -07:00
Dylan Piercey
0c0ff04e76
fix: incorrect source position for attribute arguments 2021-09-05 12:49:39 -07:00
Dylan Piercey
1a1fb8a028
chore: rerun prettier after upgrade 2021-09-03 09:32:17 -07:00
Dylan Piercey
a301a870e8
fix: supports babel 7.15.4
https://github.com/babel/babel/pull/13532
Babel released a patch that included renaming a config property.
They are planning to reverse this change. This patch works with
both the previous and current versions of babel.
2021-09-03 09:07:38 -07:00
Dylan Piercey
86162a1471
fix: issue with hoisted tag var scopes 2021-08-06 11:33:51 -07:00
Dylan Piercey
5726899096 feat: expose @marko/compiler/register api 2021-07-28 15:36:16 -07:00
Dylan Piercey
accb1bf51f fix: support method shorthand from updated parser 2021-07-27 20:49:10 -07:00
Dylan Piercey
c728439906 fix(compiler): issue with getters on taglibs not properly merging 2021-07-26 11:37:55 -07:00
Dylan Piercey
56495aee99
fix: issue with root translator running in hydrate mode 2021-07-24 10:55:20 -07:00
Dylan Piercey
f49fc1901b
feat: lazy load load compiler hook paths, expose error loc object 2021-07-24 10:48:29 -07:00
Dylan Piercey
1c20064bdf feat: add support for new binding shorthand syntax 2021-07-23 08:38:54 -07:00
Dylan Piercey
ed8de119f1 fix: issue with tag var scope hoisting 2021-07-21 10:47:46 -07:00
Dylan Piercey
4e6bd9a2e9
fix: incorrect search file types for taglib lookup 2021-07-07 14:55:14 -07:00
Dylan Piercey
0e008e33e5
fix: add missing compiler hook aliases during taglib loading 2021-07-07 13:48:20 -07:00
Dylan Piercey
956a80c5c2 feat: add hoisting support for tag var bindings 2021-07-07 10:45:06 -07:00
Dylan Piercey
e2b0e66138 feat: support taglib translate hook, support arrays in taglib hooks 2021-07-07 10:45:06 -07:00
Dylan Piercey
8aaf910532
fix(compiler): var name typo 2021-05-04 11:05:39 -07:00
Dylan Piercey
4704b62a81
fix(compiler): issue with undefined added to watchFiles 2021-05-04 09:53:35 -07:00