-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable ESM and TS based config files #10785
Merged
Merged
Commits on Mar 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 25716e7 - Browse repository at this point
Copy the full SHA 25716e7View commit details
Commits on Mar 14, 2023
-
use
jiti
anddetective-typescript
Instead of `detective`, this way we will be able to support `tailwind.config.ts` files and `ESM` files.
Configuration menu - View commit details
-
Copy full SHA for e1bc353 - Browse repository at this point
Copy the full SHA e1bc353View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1614c8 - Browse repository at this point
Copy the full SHA f1614c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for dff3dc9 - Browse repository at this point
Copy the full SHA dff3dc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for de52eb7 - Browse repository at this point
Copy the full SHA de52eb7View commit details
Commits on Mar 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ca82433 - Browse repository at this point
Copy the full SHA ca82433View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44fffbb - Browse repository at this point
Copy the full SHA 44fffbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff9540c - Browse repository at this point
Copy the full SHA ff9540cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96f683e - Browse repository at this point
Copy the full SHA 96f683eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a4a421 - Browse repository at this point
Copy the full SHA 3a4a421View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59f2594 - Browse repository at this point
Copy the full SHA 59f2594View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08909e0 - Browse repository at this point
Copy the full SHA 08909e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7498f39 - Browse repository at this point
Copy the full SHA 7498f39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90e3d8f - Browse repository at this point
Copy the full SHA 90e3d8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ebec943 - Browse repository at this point
Copy the full SHA ebec943View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddacbc8 - Browse repository at this point
Copy the full SHA ddacbc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9dfa14 - Browse repository at this point
Copy the full SHA b9dfa14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30cf66f - Browse repository at this point
Copy the full SHA 30cf66fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3c6086 - Browse repository at this point
Copy the full SHA b3c6086View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33c3b04 - Browse repository at this point
Copy the full SHA 33c3b04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13b03d7 - Browse repository at this point
Copy the full SHA 13b03d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8283c2d - Browse repository at this point
Copy the full SHA 8283c2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9604485 - Browse repository at this point
Copy the full SHA 9604485View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76296e7 - Browse repository at this point
Copy the full SHA 76296e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ec55a2 - Browse repository at this point
Copy the full SHA 1ec55a2View commit details -
TODO: Test all combinations of `--full`, `--ts`, `--postcss`, and `--esm`.
Configuration menu - View commit details
-
Copy full SHA for f114cb0 - Browse repository at this point
Copy the full SHA f114cb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2367d02 - Browse repository at this point
Copy the full SHA 2367d02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74d51f6 - Browse repository at this point
Copy the full SHA 74d51f6View commit details -
Did you know you could pass an empty args to a command? No? Me neither. ¯\_(ツ)_/¯
Configuration menu - View commit details
-
Copy full SHA for 5f83b57 - Browse repository at this point
Copy the full SHA 5f83b57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8435352 - Browse repository at this point
Copy the full SHA 8435352View commit details -
Configuration menu - View commit details
-
Copy full SHA for eeb8eb4 - Browse repository at this point
Copy the full SHA eeb8eb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 407ab20 - Browse repository at this point
Copy the full SHA 407ab20View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbfae98 - Browse repository at this point
Copy the full SHA cbfae98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6813c0c - Browse repository at this point
Copy the full SHA 6813c0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fd103f - Browse repository at this point
Copy the full SHA 1fd103fView commit details -
We are not displaying output in the `--help` anymore based on whether `type: module` is present or not. Therefore this test is unneeded.
Configuration menu - View commit details
-
Copy full SHA for 3254069 - Browse repository at this point
Copy the full SHA 3254069View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3102e8 - Browse repository at this point
Copy the full SHA e3102e8View commit details -
refactor
load
to beloadConfig
This will allow you to use: ```js import loadConfig from 'tailwindcss/loadConfig' let config = loadConfig("/Users/xyz/projects/my-app/tailwind.config.ts") ``` The `loadConfig` function will return the configuration object based on the given absolute path of a tailwind configuration file. The given path can be a CJS, an ESM or a TS file.
Configuration menu - View commit details
-
Copy full SHA for eaac06c - Browse repository at this point
Copy the full SHA eaac06cView commit details -
use the
config.full.js
stub instead of thedefaultConfig.stub.js
……file The root `defaultConfig` is still there for backwards compatibilty reasons. But the `module.exports = requrie('./config.full.js')` was causing some problems when actually using tailwindcss. So dropped it instead.
Configuration menu - View commit details
-
Copy full SHA for 9fb6160 - Browse repository at this point
Copy the full SHA 9fb6160View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e385d5 - Browse repository at this point
Copy the full SHA 2e385d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bcf8ba - Browse repository at this point
Copy the full SHA 9bcf8baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 444b526 - Browse repository at this point
Copy the full SHA 444b526View commit details -
catch errors instead of checking if the file exists
A little smaller but just for tests so doesn't matter too much here 👍
Configuration menu - View commit details
-
Copy full SHA for f40fdc4 - Browse repository at this point
Copy the full SHA f40fdc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e853901 - Browse repository at this point
Copy the full SHA e853901View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.