From 45b7df8b7373ab22d8973bab10864b33930c6450 Mon Sep 17 00:00:00 2001 From: IsaccoSordo Date: Mon, 13 Jan 2025 16:06:39 +0100 Subject: [PATCH] fix: css bundling --- package-lock.json | 69 ---------------------------- packages/beacon-ui/package.json | 1 - packages/beacon-ui/rollup.config.mjs | 27 +++++------ 3 files changed, 12 insertions(+), 85 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63ac0666b..31956dc20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20513,21 +20513,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/rollup-plugin-import-css": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/rollup-plugin-import-css/-/rollup-plugin-import-css-3.5.0.tgz", - "integrity": "sha512-JOVow6n00qt2C/NnsqPmIjFOfxIAudwWqC5SaC84CodMGiMFaP1gPAdgnJ8g8hcG+P85TCYp2kI98grYCEt5pg==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^5.0.4" - }, - "engines": { - "node": ">=16" - }, - "peerDependencies": { - "rollup": "^2.x.x || ^3.x.x || ^4.x.x" - } - }, "node_modules/rollup-plugin-postcss": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.2.tgz", @@ -24760,7 +24745,6 @@ "@types/react-dom": "^18.2.13", "@vitejs/plugin-react": "^4.1.0", "rollup": "^3.29.1", - "rollup-plugin-import-css": "^3.3.3", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-svg": "^2.0.0", "rollup-plugin-typescript2": "^0.35.0", @@ -24790,59 +24774,6 @@ } } }, - "packages/beacon-ui/node_modules/@walletconnect/heartbeat": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@walletconnect/heartbeat/-/heartbeat-1.2.1.tgz", - "integrity": "sha512-yVzws616xsDLJxuG/28FqtZ5rzrTA4gUjdEMTbWB5Y8V1XHRmqq4efAxCw5ie7WjbXFSUyBHaWlMR+2/CpQC5Q==", - "dependencies": { - "@walletconnect/events": "^1.0.1", - "@walletconnect/time": "^1.0.2", - "tslib": "1.14.1" - } - }, - "packages/beacon-ui/node_modules/@walletconnect/jsonrpc-types": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@walletconnect/jsonrpc-types/-/jsonrpc-types-1.0.3.tgz", - "integrity": "sha512-iIQ8hboBl3o5ufmJ8cuduGad0CQm3ZlsHtujv9Eu16xq89q+BG7Nh5VLxxUgmtpnrePgFkTwXirCTkwJH1v+Yw==", - "dependencies": { - "keyvaluestorage-interface": "^1.0.0", - "tslib": "1.14.1" - } - }, - "packages/beacon-ui/node_modules/@walletconnect/types": { - "version": "2.11.2", - "resolved": "https://registry.npmjs.org/@walletconnect/types/-/types-2.11.2.tgz", - "integrity": "sha512-p632MFB+lJbip2cvtXPBQslpUdiw1sDtQ5y855bOlAGquay+6fZ4h1DcDePeKQDQM3P77ax2a9aNPZxV6y/h1Q==", - "dependencies": { - "@walletconnect/events": "^1.0.1", - "@walletconnect/heartbeat": "1.2.1", - "@walletconnect/jsonrpc-types": "1.0.3", - "@walletconnect/keyvaluestorage": "^1.1.1", - "@walletconnect/logger": "^2.0.1", - "events": "^3.3.0" - } - }, - "packages/beacon-ui/node_modules/@walletconnect/utils": { - "version": "2.11.2", - "resolved": "https://registry.npmjs.org/@walletconnect/utils/-/utils-2.11.2.tgz", - "integrity": "sha512-LyfdmrnZY6dWqlF4eDrx5jpUwsB2bEPjoqR5Z6rXPiHJKUOdJt7az+mNOn5KTSOlRpd1DmozrBrWr+G9fFLYVw==", - "dependencies": { - "@stablelib/chacha20poly1305": "1.0.1", - "@stablelib/hkdf": "1.0.1", - "@stablelib/random": "^1.0.2", - "@stablelib/sha256": "1.0.1", - "@stablelib/x25519": "^1.0.3", - "@walletconnect/relay-api": "^1.0.9", - "@walletconnect/safe-json": "^1.0.2", - "@walletconnect/time": "^1.0.2", - "@walletconnect/types": "2.11.2", - "@walletconnect/window-getters": "^1.0.1", - "@walletconnect/window-metadata": "^1.0.1", - "detect-browser": "5.3.0", - "query-string": "7.1.3", - "uint8arrays": "^3.1.0" - } - }, "packages/beacon-ui/node_modules/serialize-javascript": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", diff --git a/packages/beacon-ui/package.json b/packages/beacon-ui/package.json index 6304405aa..8bcc946ad 100644 --- a/packages/beacon-ui/package.json +++ b/packages/beacon-ui/package.json @@ -49,7 +49,6 @@ "@types/node": "^20.6.0", "@types/qrcode-svg": "^1.1.2", "rollup": "^3.29.1", - "rollup-plugin-import-css": "^3.3.3", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-svg": "^2.0.0", "rollup-plugin-typescript2": "^0.35.0", diff --git a/packages/beacon-ui/rollup.config.mjs b/packages/beacon-ui/rollup.config.mjs index 75ac3bdc6..72d46bcd6 100644 --- a/packages/beacon-ui/rollup.config.mjs +++ b/packages/beacon-ui/rollup.config.mjs @@ -1,5 +1,4 @@ import postcss from 'rollup-plugin-postcss' -import css from 'rollup-plugin-import-css' import typescript from 'rollup-plugin-typescript2' import babel from '@rollup/plugin-babel' import terser from '@rollup/plugin-terser' @@ -20,12 +19,11 @@ export default [ plugins: [ resolve({ extensions }), commonjs(), - // postcss({ - // extract: true, - // minimize: true, - // sourceMap: true, - // }), - css(), + postcss({ + inject: true, + minimize: true, + sourceMap: true + }), typescript({ tsconfig: 'tsconfig.json' }), @@ -34,7 +32,7 @@ export default [ babelHelpers: 'bundled', include: ['src/**/*'], presets: [['@babel/preset-react', { runtime: 'automatic' }]] - }), + }) // terser() ] }, @@ -55,12 +53,11 @@ export default [ plugins: [ resolve({ extensions }), commonjs(), - // postcss({ - // extract: true, - // minimize: true, - // sourceMap: true, - // }), - css(), + postcss({ + inject: true, + minimize: true, + sourceMap: true + }), typescript({ tsconfig: 'tsconfig.json' }), @@ -69,7 +66,7 @@ export default [ babelHelpers: 'bundled', include: ['src/**/*'], presets: [['@babel/preset-react', { runtime: 'automatic' }]] - }), + }) // terser() ] }