50 Commits

Author SHA1 Message Date
dpiercey
08823b916b fix: interop translator output hydrate code 2024-03-11 10:15:17 -07:00
Ryan Turnquist
609fbbbfa4
fix: Import tags and tag resolution priority (#2105)
* fix: tag import resolution, native/custom/local priority

* chore: add test
2024-02-09 12:31:03 -08:00
Ryan Turnquist
b26cffb84f
feat: tag args (#2100)
* feat: support arguments on custom & dynamic tags

* fix: update tests, make iterop work

* fix: update test

* fix: simplify update top level api

* chore: add tag args assertion tests
2024-02-01 14:53:33 -08:00
dpiercey
69b3ff57c8 chore: reformat files 2024-01-09 14:31:31 -07:00
dpiercey
648a94928f chore: expose compiler metadata about which templates were analyzed 2023-11-14 10:46:48 -07:00
dpiercey
1c5eccadf8 fix: correct exports for @marko/babel-utils 2023-11-10 11:59:59 -07:00
LuLaValva
a53092ba58 feat(ast): add type args and params 2023-11-10 10:18:50 -07:00
Dylan Piercey
1235cf7005 fix: issue with static template literal expressions 2023-08-07 08:46:40 -07:00
Dylan Piercey
b2e70bc450 feat: switch to new compute node helper 2023-08-07 08:12:42 -07:00
Michael Rawlings
067db9883f chore: sort imports 2023-07-24 11:55:08 -04:00
Michael Rawlings
dacbaa72e1 chore: update prettier package & config, reformat 2023-07-24 11:55:08 -04:00
Dylan Piercey
2afa3f6e61 fix: @marko/register source maps 2023-07-12 10:24:23 -07:00
Dylan Piercey
d930378434 feat: move <macro> tag validation to translate stage 2023-07-06 15:41:10 -07:00
Dylan Piercey
9d3b34eefa feat: fixable parse errors 2023-06-27 15:16:42 -07:00
Dylan Piercey
42f7b46e25 fix: run migration fixes synchronously 2023-06-15 15:49:49 -07:00
Dylan Piercey
70922e68e0 feat: add support for reporting compiler diagnostics 2023-06-05 11:24:51 -07:00
Dylan Piercey
65bab8e6df
fix: regexp for swapping dev/prod runtimes (#1845) 2022-08-11 09:41:43 -07:00
Dylan Piercey
0a207fbf15
fix(babel-utils): child template analysis in nested node_modules (#1820) 2022-06-29 08:28:22 -07:00
Dylan Piercey
db2539ab8f
feat: relative import normalization now works better with node_modules (#1779) 2022-03-11 13:01:28 -07:00
Dylan Piercey
981f7f39f9
feat: support analyze field in marko.json (#1769) 2022-01-28 12:48:19 -07:00
Dylan Piercey
86310e6039 fix: normalize file opts similar to babel 2021-09-29 15:08:11 -07:00
Dylan Piercey
ff07eadde2
fix: consistent file.opts during parse & other stages 2021-09-05 12:50:07 -07:00
Dylan Piercey
1a1fb8a028
chore: rerun prettier after upgrade 2021-09-03 09:32:17 -07:00
Dylan Piercey
9d5ef81e0b
fix(babel-utils): ensure relative paths when using import utils 2021-08-06 11:49:16 -07:00
Dylan Piercey
f2133bcd19
fix(babel-utils): issue with child template analysis in node_modules 2021-03-27 10:11:46 -07:00
Dylan Piercey
a4e701355e
feat: add hydrate option (#1673)
* feat: add hydrate, migrate and source output options

Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
2021-03-18 08:56:46 -07:00
Dylan Piercey
4e0235419d chore: update all deps 2021-03-17 20:32:52 -07:00
Dylan Piercey
f0cd4520cb
fix(babel-utils): loadFileForImport not fully resolving file 2021-03-10 13:30:41 -07:00
Dylan Piercey
5e8fa9f474
fix(babel-utils): add missing export 2021-03-10 13:17:17 -07:00
Dylan Piercey
7efc2abb1b
feat(babel-utils): add api for analyzing template by import path 2021-03-10 12:31:02 -07:00
Dylan Piercey
5369a63e0c fix: move @marko/babel-types into compiler 2021-02-26 12:44:31 -07:00
Khauri McClain
7c14bdf553
fix: add else-if to transparent tags (#1657) 2021-02-05 11:53:43 -07:00
Dylan Piercey
c122c08d92
fix(babel-utils): improve website compatability 2021-01-25 15:37:21 -07:00
Dylan Piercey
d67bac5818
fix: importing some Marko files properly includes meta 2021-01-25 15:36:14 -07:00
Dylan Piercey
60772b7098
fix: src to dist translations in some cases 2021-01-19 16:15:04 -07:00
Dylan Piercey
261de89672
fix: resolve dist runtime when optimized 2021-01-19 15:34:19 -07:00
Patrick Canella
1cd24b68c9
fix: webpack's file system not converting buffer properly (#1649) 2021-01-19 13:10:47 -07:00
Dylan Piercey
db4232e1e2
fix(babel-utils): resolve node_module templates to relative paths (#1645) 2021-01-13 14:37:30 -07:00
Dylan Piercey
02c1e29426 feat: move tag param ast to MarkoTagBody 2021-01-12 13:06:53 -07:00
Dylan Piercey
644e4d8756
feat(babel-utils): expose import and id utils (#1636) 2020-12-11 10:32:59 -07:00
Dylan Piercey
43c4433cb0
feat: add parser support for tag variables (#1630) 2020-11-20 10:34:37 -07:00
Dylan Piercey
c429ffb0aa
fix: babel-utils doesnt depend on compiler 2020-11-19 16:34:55 -07:00
Dylan Piercey
74d5f104b8 feat: cached compilations, nested tag analysis 2020-11-11 11:40:00 -07:00
Ryan Carniato
f35324962c
Hoist Static VDOM Node Creation (#1598)
* perf: vdom-node hoisting

* fix: remove keyScope hoisting

* fix: better attribute detection for hoisting

* fix: broken runtime tests

* perf: reduce evals and remove empty class attr

* refactor: expose isLoopTag and prevent while hoisting

* fix: inconsistencies from rebase

* chore: run formatting

* perf: hoist visitor in static optimization
2020-11-09 16:02:00 -08:00
Dylan Piercey
bae4a3d388 fix: dynamic tag html attr normalize 2020-10-12 10:47:40 -07:00
Dylan Piercey
ffb7431790 refactor: move helpers into @marko/babel-utils 2020-09-22 13:55:59 -07:00
Dylan Piercey
f14e46a1f3
feat: expose watch file meta data (#1591) 2020-08-05 13:40:51 -07:00
Dylan Piercey
680dad65da feat: improve index position to line, column perf 2020-07-30 20:36:55 -07:00
Dylan Piercey
0545aa8d29
refactor: extend babels file API and use their hub (#1578) 2020-07-07 11:11:13 -07:00
Michael Rawlings
02670c8693
feat: import compiler from marko-js/x
Co-authored-by: Michael Rawlings <mirawlings@ebay.com>
Co-authored-by: Dylan Piercey <dpiercey@ebay.com>
Co-authored-by: Andrew Gliga <agliga@ebay.com>
2020-02-24 21:15:05 -08:00