You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contents of requested file are read from file system using <code>readFileSync()</code> from <code>node:fs</code> module
26
-
</div>
20
+
<liclass="mt2">YAML content is converted into Javascript using <code>parse()</code> from <code>yaml</code> module</li>
27
21
28
-
<divclass="mt-6 w-full text-center">⬇️</div>
22
+
<liclass="mt2">Javascript object is serialized into text using <code>JSON.stringify()</code> and returned as default export from <code>load()</code> hook</li>
📚 Homework: Build a Vite plugin that can import [`.csv` files](https://en.wikipedia.org/wiki/Comma-separated_values) directly into Javascript. You can even build your own minimal CSV-parser!
0 commit comments