<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in css.ts</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>793fa844 - fix(metro-config): Escape octal characters in runtime CSS scripts. (#22054)</title>
        <link>http://172.16.0.5:8080/history/expo/packages/@expo/metro-config/src/transform-worker/css.ts#793fa844</link>
        <description>fix(metro-config): Escape octal characters in runtime CSS scripts. (#22054)# Whyoctal characters need to be escaped in strings.---------Co-authored-by: Expo Bot &lt;34669131+expo-bot@users.noreply.github.com&gt;

            List of files:
            /expo/packages/@expo/metro-config/src/transform-worker/css.ts</description>
        <pubDate>Sun, 09 Apr 2023 23:21:37 +0000</pubDate>
        <dc:creator>Evan Bacon &lt;bacon@expo.io&gt;</dc:creator>
    </item>
<item>
        <title>79310320 - fix(metro-config): escape backticks (#22040)</title>
        <link>http://172.16.0.5:8080/history/expo/packages/@expo/metro-config/src/transform-worker/css.ts#79310320</link>
        <description>fix(metro-config): escape backticks (#22040)# Whybackticks need to be escaped for CSS script injection to work.---------Co-authored-by: Expo Bot &lt;34669131+expo-bot@users.noreply.github.com&gt;

            List of files:
            /expo/packages/@expo/metro-config/src/transform-worker/css.ts</description>
        <pubDate>Sat, 08 Apr 2023 13:53:24 +0000</pubDate>
        <dc:creator>Evan Bacon &lt;bacon@expo.io&gt;</dc:creator>
    </item>
<item>
        <title>9b2597ba - feat(metro-config, cli): CSS support for Metro web (#21941)</title>
        <link>http://172.16.0.5:8080/history/expo/packages/@expo/metro-config/src/transform-worker/css.ts#9b2597ba</link>
        <description>feat(metro-config, cli): CSS support for Metro web (#21941)# WhyThis PR moves the CSS support from Expo Router over to`expo/metro-config` behind a beta flag. This is because we need deeperintegration with Expo CLI and Metro in order to emit static CSS files inproduction bundles. CSS is required for media queries -&gt; rehydration.- Related: https://github.com/expo/router/pull/397https://github.com/expo/router/pull/223&lt;!--Please describe the motivation for this PR, and link to relevant GitHubissues, forums posts, or feature requests.--&gt;# HowInstead of a babel transformer, we now use a custom &quot;transformer&quot; whichgives us the ability to add extra metadata to a Metro module on export.This means we can pass the raw and processed CSS for writing to disk.The development version of CSS still uses script injection viaJavaScript, meaning static rendering cannot currently be tested indevelopment.CSS Modules are implemented (web-only currently) using lightningcss. Theexport is generated to work with React Native for web. Consider thefollowing block:```jsexport default { ...StyleSheet.create({ container: { $$css: true, _: &apos;hashed-container-id&apos; }  }) }```CSS Variables are not currently hashed, enabling the user to definevariables in a global CSS file and access them in CSS Modules (subjectto change in order to support native). CSS variables are accessible fromthe default export as strings: `styles[&apos;--color&apos;] === &apos;--color&apos;`.## DocsI&apos;ve chosen to document in the versioned metro doc instead of theunversioned guide, this seems like a reasonable spot given the highlyexperimental nature of this feature.&lt;!--How did you build this feature or fix this bug and why?--&gt;# Test Plan- Unit tests for conversion.- [x] Test in/out for transformer.- [ ] Test static export.- TBD for E2E&lt;!--Please describe how you tested this change and how a reviewer couldreproduce your test, especially if this PR does not include automatedtests! If possible, please also provide terminal output and/orscreenshots demonstrating your test/reproduction.--&gt;# Checklist&lt;!--Please check the appropriate items below if they apply to your diff.This is required for changes to Expo modules.--&gt;- [ ] Documentation is up to date to reflect these changes (eg:https://docs.expo.dev and README.md).- [ ] Conforms with the [Documentation Writing StyleGuide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)- [ ] This diff will work correctly for `expo prebuild` &amp; EAS Build (eg:updated a module plugin).

            List of files:
            /expo/packages/@expo/metro-config/src/transform-worker/css.ts</description>
        <pubDate>Thu, 06 Apr 2023 03:07:12 +0000</pubDate>
        <dc:creator>Evan Bacon &lt;bacon@expo.io&gt;</dc:creator>
    </item>
</channel>
</rss>
