forked from heybourn/headwind
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Entry Point should load the index.mjs file with dynamic imports
Before the entry point was a cjs conversion of the ESM index.mjs. This caused module resolution issues when trying to load the tailwind config from the local workspace, specifically the extension would choke on tailwind plugin requires.
- Loading branch information
1 parent
8e35dee
commit e40622e
Showing
4 changed files
with
41 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
"color": "#f1f5f8" | ||
}, | ||
"icon": "tailwind-raw-reorder-icon.gif", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"publisher": "Trapfether", | ||
"license": "MIT", | ||
"author": "Andrew Trefethen <[email protected]>", | ||
|
@@ -56,47 +56,53 @@ | |
"type": "object", | ||
"default": { | ||
"jade": [ | ||
{ | ||
"regex": "\\.([\\._a-zA-Z0-9\\-]+)", | ||
"separator": "\\.", | ||
"replacement": "." | ||
}, | ||
"\\bclass\\s*=\\s*[\\\"\\']([\\._a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']" | ||
{ | ||
"regex": "\\.([\\._a-zA-Z0-9\\-]+)", | ||
"separator": "\\.", | ||
"replacement": "." | ||
}, | ||
"\\bclass\\s*=\\s*[\\\"\\']([\\._a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']" | ||
], | ||
"html": [ | ||
["class=(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2","[\"'`]([^]+)"] | ||
], | ||
[ | ||
"class=(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
], | ||
"css": "\\B@apply\\s+([\\._a-zA-Z0-9\\s\\-\\:\\/]+);", | ||
"javascript": [ | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
], | ||
"javascriptreact": [ | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*{?([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*{?(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*{?([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*{?(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
], | ||
"typescript": [ | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
], | ||
"typescriptreact": [ | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*{?([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*{?(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
[ | ||
"((?:class(?:Name)?|tw)\\s*=\\s*{?([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>]\\2)", | ||
"(?:class(?:Name)?|tw)\\s*=\\s*{?(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
], | ||
"php": [ | ||
["class=(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2","[\"'`]([^]+)"] | ||
[ | ||
"class=(([\"'`])(?:(?:[^{}<>](?!\\2))|\\\\\\2)+[^{}<>])\\2", | ||
"[\"'`]([^]+)" | ||
] | ||
] | ||
}, | ||
"description": "An object with language IDs as keys and their values determining the regex to search for Tailwind CSS classes.", | ||
|
@@ -118,7 +124,7 @@ | |
"_esbuild": "node build.mjs", | ||
"prebuild": "npm run _pre", | ||
"build": "npm run _esbuild -- --minify", | ||
"test": "mocha" | ||
"test": "mocha" | ||
}, | ||
"devDependencies": { | ||
"@types/lodash": "^4.14.149", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = import('./index.mjs'); |