fix(plugin/twind): load configuration as module (#705)

This commit loads the Twind configuration as an actual module rather
than evaluating it on the server and then serializing. This allows usage
of unserializable plugin functions.

Co-authored-by: Elias Sjögreen <eliassjogreen1@gmail.com>
This commit is contained in:
Luca Casonato
2022-09-07 00:44:46 +02:00
committed by GitHub
co-authored by Elias Sjögreen
parent 8e9658cae5
commit 1b3c9f2569
7 changed files with 30 additions and 54 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ Deno.test({
{ "type": "file", "name": "README.md" },
{ "type": "file", "name": "import_map.json" },
{ "type": "file", "name": "fresh.gen.ts" },
{ "type": "file", "name": "twind.config.js" },
{ "type": "file", "name": "twind.config.ts" },
{
"type": "directory",
"name": "components",