Commit graph

3871 commits

Author SHA1 Message Date
Matthew Phillips
9490f0e223
Include styles imported by hoisted scripts (#4457)
* Include styles imported by hoisted scripts

* Add changeset

* remove unused imports
2022-08-25 11:14:22 -04:00
Bjorn Lu
467108730e
Remove optional chaining in astro-island (#4473) 2022-08-25 22:01:22 +08:00
kagankan
8a2d6958f1
Fix load base option in build (#4469) 2022-08-25 09:35:28 -04:00
Fred K. Bot
1f80c63b74
[ci] update lockfile (#4472)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-08-25 09:33:58 -04:00
bluwy
cb0db5ff9d [ci] format 2022-08-25 08:36:41 +00:00
Bjorn Lu
aa555932be
Support vite.build.cssCodeSplit: false option (#4458) 2022-08-25 16:34:13 +08:00
Ikko Ashimine
1d9d72ea31
Fix typo in vite-plugin-astro/index.ts (#4467) 2022-08-25 16:24:16 +08:00
Adam
62d98e4af3
Update Filter Section (#4455)
Add brief explanation and example of filtering multiple pages.
2022-08-24 16:14:50 -04:00
Fred K. Bot
8b00456765
[ci] update lockfile (#4452)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-24 11:28:39 -04:00
Bjorn Lu
a38a568299
Fix incorrect css test (#4451) 2022-08-24 22:11:42 +08:00
Moritz Stückler
c960f602da
feat: add screenshots to official theme readme files (#4442)
* feat: add screenshot to basic example

* feat: add screenshot to blog examples

* feat: add screenshots to docs example

* feat: add screenshot to portfolio example
2022-08-24 10:01:01 -04:00
Bjorn Lu
1daaaf3d71
Remove debugger statements (#4449) 2022-08-24 09:58:28 -04:00
Bjorn Lu
85646918ac
Refactor CSS preprocess and HMR (#4422) 2022-08-24 21:06:48 +08:00
matthewp
ea4d68c0b0 [ci] format 2022-08-23 19:58:11 +00:00
hippotastic
57fafc7c01
Add tests: Special chars in component import paths (#4263)
* Add tests: Special chars in component import paths

* Fix ESLint warnings, add Windows dev exclusion

* Crude fix

* chore: update compiler

* chore: bump compiler

* fix: remove decodeURI

* Fix tests and skip them for now

Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-23 15:55:03 -04:00
Fred K. Bot
65885e2066
[ci] update lockfile (#4434)
* [ci] update lockfile

* Pin rollup to ~2.77.0

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2022-08-23 15:49:43 -04:00
Fred K. Bot
5427e89491
[ci] release (#4431)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-23 15:27:10 -04:00
bholmesdev
1f702ce011 [ci] format 2022-08-23 18:09:01 +00:00
Ben Holmes
df4e999284
Add logs for long-running integration hooks (#4445)
* feat: basic logging for long astro:build:done hooks

* feat: add long time msg to all build hooks

* feat: use logger for long time msg

* chore: changeset
2022-08-23 14:07:09 -04:00
matthewp
77f9afa44a [ci] format 2022-08-23 17:28:38 +00:00
Matthew Phillips
27ac6a03a1
Use CSS depth to sort CSS in production (#4446)
* Use CSS depth to sort CSS in production

* Adds a changeset
2022-08-23 13:26:49 -04:00
Ben Holmes
adb2079796
Fix MDX style imports when layout is not applied (#4443)
* fix: add "astro.needsHeadRendering" to MDX

* test: style imports in pages without layout

* chore: changeset
2022-08-23 13:25:35 -04:00
Erika
ca0c7e8b83
Allow string as a valid value for the target attribute (#4441) 2022-08-23 11:39:02 -03:00
Bjorn Lu
baa2ddd010
Warn hydration directive for Astro components in JSX (#4330)
* Warn hydration directive for Astro components in JSX

* Add changeset

* Better comment
2022-08-23 10:38:31 -04:00
Ben Holmes
dc42f2c00f
Fix astro add @example-org/integration (#4430)
* fix: parse third-party org names

* chore: changeset
2022-08-23 10:09:39 -04:00
matthewp
bc5cb85232 [ci] format 2022-08-23 12:50:09 +00:00
Matthew Phillips
f40065f510
Ensure index pages are generated on paginated results (#4426)
* Ensure index pages are generated on paginated results

* Changeset
2022-08-23 08:47:20 -04:00
Kiril Shevchuk
8164fa6f1a
Fix invalid hook usage for exports (#4385)
* Add proper support functional components exports

* Add changeset

* Add support for `export default X`
2022-08-23 08:46:51 -04:00
Cameron McEfee
b2e976f39c
fix (core): allow falsy values in astro config integrations arrays (#4427)
* allow falsy values in astro config integrations arrays

* add changeset
2022-08-23 08:23:08 -04:00
Ben Holmes
a2414bf59e
Improve MDX glob perf - move Layout to async import (#4428)
* fix: move layout to async import

* chore: changeset

* docs: clarify async import
2022-08-22 18:18:30 -04:00
Fred K. Bot
c8d0fa4c4e
[ci] release (#4425)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 16:53:44 -04:00
matthewp
a20e811795 [ci] format 2022-08-22 19:49:45 +00:00
Fred K. Bot
457e559cd5
[ci] release (#4363)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 15:46:46 -04:00
Tony Sullivan
579e2daf8d
[@astrojs/image] Handle query params in remote image URLs during SSG builds (#4338)
* fix: SSG builds should remove query params when building local image files

* chore: add changeset

* handling an edge case related to stripping extensions from a filename
2022-08-22 19:45:34 +00:00
tony-sull
2c40fba0c8 [ci] format 2022-08-22 19:15:35 +00:00
Tony Sullivan
c4af8723bd
[@astrojs/image] adds a logger to the the image integration (#4342)
* WIP: adding a console logger that respect vite.logLevel

* adds an optional prefix for messages

* remove temporary debug log

* typo fix

* cleaning up log syntax

* fixing logger whitespace

* adding README docs

* test: disable integration logging in tests

* chore: add changeset
2022-08-22 19:13:19 +00:00
Nu11Terminator
4ac2718883
fix: vercel static export path (#4370)
This enables the use of `{ output: static, adapter: vercelStaticAdapter}`

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-08-22 14:50:15 -04:00
Rui Saraiva
be2774b357
chore(basics): update README folder structure (#4417) 2022-08-22 14:26:44 -04:00
Fred K. Schott
7310e8a178
add an alpine integration and update example (#4406) 2022-08-22 14:25:57 -04:00
Fred K. Schott
a70f69a06c
refactor the JSX plugin to improve performance (#4405) 2022-08-22 14:25:09 -04:00
sergix
dd52b2192d
Include note about Tailwind per-component errors using '@apply' (#4353)
* add: @apply exceptions for component frameworks

Some frameworks, specifically Vue, will not recognize global @layer directives in a global stylesheet because of how Vue's build system works. Instead, prefer to add a plugin to your Tailwind config. #2660, #3073

* Update README.md

* Update README.md
2022-08-22 14:18:17 -04:00
EBits00
8f20b18875
Updated Express code to serve assets (#4402)
Assets where not served so the style was not applied, fixed this by adding the line app.use(express.static('dist/client/'))
2022-08-22 12:33:54 -04:00
Maik Jablonski
8264f85f1d
Running Astro as SSG on Vercel without adapter (#4299)
Fixes the 404 handling.
2022-08-22 11:47:14 -04:00
Ben Holmes
7820096e1b
fix: correctly add react-dom alias to Vercel edge (#4421)
* fix: correctly add react-dom alias to vercel edge

* chore: changeset
2022-08-22 11:46:02 -04:00
Bjorn Lu
39088e11db
Bump Vite to 3.0.9 (#4415) 2022-08-22 10:58:50 -04:00
matthewp
0402eb0972 [ci] format 2022-08-22 14:41:22 +00:00
Matthew Phillips
5e82f6c245
Fix race condition with directive definitions (#4375) 2022-08-22 10:39:16 -04:00
Eldemarkki
439f1d1c0d
Fix typo in stricter tsconfig (#4394) 2022-08-20 20:45:23 +08:00
Vincent Uden
2615042923
Fix typo in the docs example (#4382) 2022-08-19 16:06:53 +08:00
Bjorn Lu
77b068086d
Preserve all error stack lines (#4364) 2022-08-18 14:36:31 +08:00