Commit graph

1566 commits

Author SHA1 Message Date
Nate Moore
cb733cf689
feat: improve support for third-party React packages (#1701) 2021-10-29 13:23:03 -05:00
Nate Moore
6becdc8cc0
fix: do not crash when Markdown has no content (#1702) 2021-10-29 13:22:57 -05:00
Nate Moore
c9b33d2b7e
chore: update compiler (#1705) 2021-10-29 13:22:44 -05:00
Nate Moore
a7e62ded69
fix: exclude all renderer server entrypoints (#1692) 2021-10-28 15:54:04 -04:00
Matthew Phillips
577d912b8e
Exclude lit-server from being optimized (#1691)
This should get the lit example working from `npm`.
2021-10-28 14:25:29 -04:00
Nate Moore
934d085f94
chore: update compiler (#1690) 2021-10-28 13:24:32 -05:00
Drew Powers
ee7b5e482b
Bugfix: JSX renderers can be declared in any order (#1686) 2021-10-28 09:26:15 -06:00
Drew Powers
acd13914f4
Fix Astro HMR bottleneck (#1684) 2021-10-28 08:14:23 -06:00
Nate Moore
e16e115371
[next] update compiler (#1683)
* chore: update compiler

* chore: update compiler (again)
2021-10-27 17:05:08 -05:00
Nate Moore
2da8ce211d
Next bugs (#1681)
* fix(#1679): hoisted <script> rendering

* fix(#1679): do not print global for styles, but do for scripts

* fix: update ObjectSet implementation

* fix: dedupe elements in sets
2021-10-27 15:26:52 -05:00
Matthew Phillips
502c799b1d
Config changes needed for stater template (#1680)
This does 2 things:

1. Adds prismjs as a dep.
2. Adds shiki as an external.
2021-10-27 15:05:42 -04:00
Matthew Phillips
e50cfa7bb4 Adding a changeset for the remark plugin 2021-10-27 15:05:30 -04:00
Matthew Phillips
77cd898dea
Prevent scanning a user's deps (#1678)
* Prevent scanning a user's deps

* Remove unused things

* remove unused util
2021-10-27 14:28:36 -04:00
Drew Powers
387bd1a48f
Update CONTRIBUTING.md (#1677) 2021-10-27 12:05:31 -06:00
Nate Moore
9f44a513ee
[next] Fix resolveDependency on Windows (#1666)
* fix: Windows issue with resolveDependency util

* chore: add comment
2021-10-27 11:11:20 -05:00
Drew Powers
a07a598122
Fix with-nanostore deps (#1675)
Adds missing Solid renderer
2021-10-27 10:07:50 -06:00
Matthew Phillips
8c4720db3a
Fix Vite race condition (#1674) 2021-10-27 11:45:37 -04:00
Drew Powers
62684dbe4b
Bugfix: plugin-astro-fetch tries to append node-fetch to node-fetch (#1671) 2021-10-27 09:37:29 -06:00
Nate Moore
bd2ac13753
[next] Add preact/compat renderer (#1668)
* feat: add preact/compat entry for `@astrojs/renderer-preact`

* Update index.js
2021-10-27 10:18:42 -05:00
Drew Powers
7f74388896
Force Vite to rebuild dependencies (#1670) 2021-10-26 22:54:41 -06:00
Drew Powers
5477dc19c2
Bugfix: renderer-lit missing files on npm (#1669) 2021-10-26 21:51:30 -06:00
Nate Moore
56f74e2bc8
[next] fix island hydration inside of <Markdown> (#1665)
* fix: create rehype plugin to smooth over island hydration bugs

* refactor: remove debug code

* chore: explain need for `rehypeIslands`
2021-10-26 21:11:18 -05:00
Nate Moore
b04d478b52
chore: update compiler to latest (#1664) 2021-10-26 19:18:57 -05:00
Nate Moore
8f699e5a42
fix: scope define:vars to :root for <style global> (#1663) 2021-10-26 16:36:53 -05:00
Nate Moore
55c8453fd2
fix: dedupe hashes for identical islands (#1660) 2021-10-26 13:00:55 -05:00
Drew Powers
c85c7e2188
Template fixes (#1656) 2021-10-26 09:57:17 -06:00
Matthew Phillips
dd40617038
Resolve renderers relative to the projectRoot (#1659) 2021-10-26 11:25:24 -04:00
Matthew Phillips
aa0590afdf
Upgrade compiler version (#1655)
Fixes docs and blog examples
2021-10-25 16:18:24 -04:00
Matthew Phillips
0430c0e1d2
Fixes external HMR (#1654) 2021-10-25 15:23:39 -04:00
Drew Powers
07f786096d
Add CSS injection, fix portfolio example (#1648)
* Fix portfolio example

* Add .pcss extension

* Update load ssr opts

* Update packages/astro/src/runtime/server/index.ts

Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
2021-10-25 13:05:27 -06:00
Matthew Phillips
1103cb1f9d Prevent passing class to Vue components 2021-10-25 14:07:00 -04:00
Matthew Phillips
303f32fda0 Prevent passing to Svelte components 2021-10-25 14:01:38 -04:00
Matthew Phillips
190e03b5ce
Fix broken next release (#1652) 2021-10-25 12:55:26 -04:00
Matthew Phillips
7f95d706e9
Add support for markdown plugins (#1650) 2021-10-25 09:40:07 -04:00
Matthew Phillips
8206421ffa Fixes solid (#1634)
* Fixes solid

* Rename the test

* Rebase with next

* Skip solid test for now
2021-10-22 16:25:38 -06:00
Nate Moore
06562af124 [next] Fix <Code> component (#1635)
* fix: enable Code component

* test: update expect to chai format
2021-10-22 16:25:38 -06:00
Nate Moore
09bc35e803 [next] Fix <Markdown> component (#1631)
* fix: cleanup issues with <Markdown> component

* fix: fix `content` usage with Markdown
2021-10-22 16:25:38 -06:00
Nate Moore
4647c998ea feat: fix Debug component (#1633) 2021-10-22 16:25:38 -06:00
Nate Moore
b5226e68dd fix: define:vars scoping for styles (#1632) 2021-10-22 16:25:38 -06:00
Jonathan Neal
d9caef63d8 Add class:list directive (#1612)
* Add support for class:list directive

The `class:list` directive serializes an expression of css class names. For React components, `className:list` is also supported.

* Remove `className` support and React tests

* Add tests for the absence of omitted classes
2021-10-22 16:25:38 -06:00
Matthew Phillips
b0e407dc4b [next] docs example fully working (#1627)
* [next] docs example fully working

* Upgrade compiler to unlock docs
2021-10-22 16:25:38 -06:00
Drew Powers
2c15795607 Minor change to jsxTransformOptions, update Renderer API docs (#1630) 2021-10-22 16:25:38 -06:00
Drew Powers
b0ef391e57 Remove cheerio scanning from build stats (#1629) 2021-10-22 16:25:38 -06:00
Drew Powers
4c9d3cf3d9 Fix changesets (#1628) 2021-10-22 16:25:38 -06:00
Drew Powers
330620e1b3 Update renderer API for Vite (#1623)
* Update renderer API for Vite

* Fix lit-element tests

* Clean up comments

* Throw friendly error if renderer provides viteConfig in a bad format
2021-10-22 16:25:38 -06:00
Drew Powers
4b25d5592a Move Sass to deps (#1622) 2021-10-22 16:25:38 -06:00
Fred K. Schott
dff64574c4 fix issues in blog-multiple-authors (#1621) 2021-10-22 16:25:38 -06:00
Drew Powers
d1a73e4c38 [next] Add CSS preprocessing (#1589)
* Add concept for style support in Astro

* Update style preprocessor to use new compiler

* fix: massage preprocessStyle type

* fix: @astrojs/compiler types

Co-authored-by: Nate Moore <nate@skypack.dev>
2021-10-22 16:25:38 -06:00
Nate Moore
51e5a45ec5 [next] fix .tsx handling (#1620)
* fix: support tsx in JSX plugin

* fix: preserve JSX via esbuild, only use Babel for JSX compilation

* fix: handle upcoming Vite API for `ssr` flag
2021-10-22 16:25:38 -06:00
Nate Moore
2c36d0a427 feat: add fragment support to vite-plugin-astro (#1600) 2021-10-22 16:25:37 -06:00