Skip to content

Commit 3af1af3

Browse files
committed
Remove NyanCSS
1 parent 312cf94 commit 3af1af3

File tree

3 files changed

+1
-53
lines changed

3 files changed

+1
-53
lines changed

config/webpackDefaults.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,9 @@ function cssRule(isWeb: boolean) {
7373
]
7474
: 'null-loader'
7575

76-
const nyancssLoaders = [
77-
'@nyancss/css-modules-loader/preact',
78-
{ loader: MiniCssExtractPlugin.loader, options: { esModule: false } },
79-
{
80-
loader: 'css-loader',
81-
options: { modules: true },
82-
},
83-
]
84-
8576
return {
8677
test: /\.css$/,
87-
oneOf: [
88-
{
89-
resourceQuery: /global/, // foobar.css?global
90-
use: cssLoaders,
91-
},
92-
{ use: nyancssLoaders },
93-
],
78+
use: cssLoaders,
9479
exclude: [/\.vanilla\.css$/i],
9580
}
9681
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
},
1616
"dependencies": {
1717
"@date-fns/docs": "0.12.1",
18-
"@nyancss/css-modules-loader": "^1.1.0",
19-
"@nyancss/react": "^1.3.0",
2018
"@sentry/browser": "^5.30.0",
2119
"@sentry/tracing": "^5.30.0",
2220
"@switcher/preact": "^1.1.2",

yarn.lock

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -943,41 +943,6 @@
943943
"@nodelib/fs.scandir" "2.1.4"
944944
fastq "^1.6.0"
945945

946-
"@nyancss/css-modules-loader@^1.1.0":
947-
version "1.1.0"
948-
resolved "https://registry.yarnpkg.com/@nyancss/css-modules-loader/-/css-modules-loader-1.1.0.tgz#87ce218c11dca3ae451e9374f299d2e2b0c7b345"
949-
integrity sha512-Zqhw3HTF2NX21Bf9tjdRcEZMspmCQ/vb2ix4oSqlU7wt/jjBJg/25WnPxubwU8bhYx+lCfNiBJD2+pOaWIUviQ==
950-
dependencies:
951-
"@nyancss/css-modules" "^1.2"
952-
953-
"@nyancss/css-modules@^1.2":
954-
version "1.2.0"
955-
resolved "https://registry.yarnpkg.com/@nyancss/css-modules/-/css-modules-1.2.0.tgz#2be32c37a1213028446ec2ab32faaa9dd909be6f"
956-
integrity sha512-2tT/mxRtl0Y8u8EtJLk8pLNJktoZcKewc8DFMc48Om9pw5lKDOeG9N9IUzIhO1jJkaKmJ+/SOoKHAwf8Ho4q+Q==
957-
dependencies:
958-
"@nyancss/types" "^1"
959-
"@nyancss/utils" "^1.2"
960-
961-
"@nyancss/react@^1.3.0":
962-
version "1.3.0"
963-
resolved "https://registry.yarnpkg.com/@nyancss/react/-/react-1.3.0.tgz#983dbd40c297b6e84876ae91ab6eb4e83ee0c4e6"
964-
integrity sha512-yzuuTnn+WU5qOTzlFlZFQ1YyAMLwMsRxFoEr3GMi2vlz3J958sJQSjPBQTpSOUmxOfhFNacWIhXFm5UYXRe2Kw==
965-
dependencies:
966-
"@nyancss/types" "^1"
967-
"@nyancss/utils" "^1.2"
968-
969-
"@nyancss/types@^1", "@nyancss/types@^1.1.0":
970-
version "1.1.0"
971-
resolved "https://registry.yarnpkg.com/@nyancss/types/-/types-1.1.0.tgz#1b6030a6ee7143a0ba2e556bff72d9da7bb13ef6"
972-
integrity sha512-iiC7HUmil5T3pLcRDP+9Iza0WbN9ZXD9t5UGvwscf8PC97JJyXQe1tS5fea3DskEB8mxUUh/J8A14LMyvX71kw==
973-
974-
"@nyancss/utils@^1.2":
975-
version "1.2.0"
976-
resolved "https://registry.yarnpkg.com/@nyancss/utils/-/utils-1.2.0.tgz#c753bf08cde34fb08bc963b46b0625f19ffe93a0"
977-
integrity sha512-9QWCpjZGo5GupaS+6C6VfYscaZo2PGsr8SWs+/B7ryrA6ztSAYE3EOVvTQIdxYC23ccZzsfIlM2tqcchUMOq+A==
978-
dependencies:
979-
"@nyancss/types" "^1.1.0"
980-
981946
"@opentelemetry/api@^0.12.0":
982947
version "0.12.0"
983948
resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-0.12.0.tgz#0359c3926e8f16fdcd8c78f196bd1e9fc4e66777"

0 commit comments

Comments
 (0)