mirror of
https://github.com/tailscale/tailscale.git
synced 2025-07-10 23:58:44 +00:00
client/web: fix Vite CJS deprecation warning (#11288)
Starting in Vite 5, Vite now issues a deprecation warning when using a CJS-based Vite config file. This commit fixes it by adding the `"type": "module"` to our package.json to opt our files into ESM module behaviours. Fixes #cleanup Signed-off-by: Ross Zurowski <ross@rosszurowski.com>
This commit is contained in:
parent
69f4b4595a
commit
e83e2e881b
@ -6,6 +6,7 @@
|
|||||||
"node": "18.16.1",
|
"node": "18.16.1",
|
||||||
"yarn": "1.22.19"
|
"yarn": "1.22.19"
|
||||||
},
|
},
|
||||||
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-collapsible": "^1.0.3",
|
"@radix-ui/react-collapsible": "^1.0.3",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
const plugin = require("tailwindcss/plugin")
|
import plugin from "tailwindcss/plugin"
|
||||||
const styles = require("./styles.json")
|
import styles from "./styles.json"
|
||||||
|
|
||||||
module.exports = {
|
const config = {
|
||||||
theme: {
|
theme: {
|
||||||
screens: {
|
screens: {
|
||||||
sm: "420px",
|
sm: "420px",
|
||||||
@ -96,20 +96,22 @@ module.exports = {
|
|||||||
plugins: [
|
plugins: [
|
||||||
plugin(function ({ addVariant }) {
|
plugin(function ({ addVariant }) {
|
||||||
addVariant("state-open", [
|
addVariant("state-open", [
|
||||||
'&[data-state="open"]',
|
"&[data-state=“open”]",
|
||||||
'[data-state="open"] &',
|
"[data-state=“open”] &",
|
||||||
])
|
])
|
||||||
addVariant("state-closed", [
|
addVariant("state-closed", [
|
||||||
'&[data-state="closed"]',
|
"&[data-state=“closed”]",
|
||||||
'[data-state="closed"] &',
|
"[data-state=“closed”] &",
|
||||||
])
|
])
|
||||||
addVariant("state-delayed-open", [
|
addVariant("state-delayed-open", [
|
||||||
'&[data-state="delayed-open"]',
|
"&[data-state=“delayed-open”]",
|
||||||
'[data-state="delayed-open"] &',
|
"[data-state=“delayed-open”] &",
|
||||||
])
|
])
|
||||||
addVariant("state-active", ['&[data-state="active"]'])
|
addVariant("state-active", ["&[data-state=“active”]"])
|
||||||
addVariant("state-inactive", ['&[data-state="inactive"]'])
|
addVariant("state-inactive", ["&[data-state=“inactive”]"])
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
content: ["./src/**/*.html", "./src/**/*.{ts,tsx}", "./index.html"],
|
content: ["./src/**/*.html", "./src/**/*.{ts,tsx}", "./index.html"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user