astro 2.0.0-beta.1
Major Changes
-
#5778
49ab4f231Thanks @bluwy! - Remove proload to load the Astro config. It will now use NodeJS and Vite to load the config only. -
#5771
259a539d7Thanks @matthewp! - Removes support for astroFlavoredMarkdownIn 1.0 Astro moved the old Astro Flavored Markdown (also sometimes called Components in Markdown) to a legacy feature. This change removes the
legacy.astroFlavoredMarkdownoption completely.In 2.0 this feature will not be available in Astro at all. We recommend migration to MDX for those were still using this feature in 1.x.
-
#5584
9963c6e4dThanks @wulinsheng123! - Builds chunks into theassetsfolder. This simplifies configuring immutable caching with your adapter provider as all files are now in the sameassetsfolder. -
#5717
a3a7fc929Thanks @bluwy! - Removestyle.postcssAstro config. Refactor tailwind integration to configure throughviteinstead. Also disablesautoprefixerin dev.
Minor Changes
-
#5769
93e633922Thanks @bholmesdev! - Introduce asmartypantsflag to opt-out of Astro's default SmartyPants plugin.{ markdown: { smartypants: false, } }Migration
You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the
extendDefaultPluginsoption. This has now been split into 2 flags to disable each plugin individually:markdown.gfmto disable GitHub-Flavored Markdownmarkdown.smartypantsto disable SmartyPants
// astro.config.mjs import { defineConfig } from 'astro/config'; export default defineConfig({ markdown: { - extendDefaultPlugins: false, + smartypants: false, + gfm: false, } });
Patch Changes
-
#5734
55cea0a9dThanks @natemoo-re! - Fixprerenderwhen used withgetStaticPaths -
#5756
116d8835cThanks @matthewp! - Fix for hoisted scripts in project with spaces in the file path -
#5743
2a5786419Thanks @Princesseuh! - Add error location during build for user-generated errors -
#5761
fa8c131f8Thanks @bholmesdev! - Add helpful error message when the MDX integration is missing. -
Updated dependencies [
93e633922]:- @astrojs/markdown-remark@2.0.0-beta.1