[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: removing preact-cli dep
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: removing preact-cli dep |
Date: |
Mon, 05 Aug 2024 15:48:18 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 88752c716 removing preact-cli dep
88752c716 is described below
commit 88752c716ad65584ed3f2a6440a099d43031de4c
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Aug 5 10:48:12 2024 -0300
removing preact-cli dep
---
packages/merchant-backoffice-ui/package.json | 1 -
packages/merchant-backoffice-ui/preact.config.js | 70 ----------------------
.../merchant-backoffice-ui/preact.single-config.js | 62 -------------------
pnpm-lock.yaml | 3 -
4 files changed, 136 deletions(-)
diff --git a/packages/merchant-backoffice-ui/package.json
b/packages/merchant-backoffice-ui/package.json
index 28adc572b..d75ecd359 100644
--- a/packages/merchant-backoffice-ui/package.json
+++ b/packages/merchant-backoffice-ui/package.json
@@ -51,7 +51,6 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"mocha": "^9.2.0",
- "preact-cli": "^3.3.5",
"sass": "1.56.1",
"source-map-support": "^0.5.21",
"typedoc": "^0.25.4",
diff --git a/packages/merchant-backoffice-ui/preact.config.js
b/packages/merchant-backoffice-ui/preact.config.js
deleted file mode 100644
index b20017a0c..000000000
--- a/packages/merchant-backoffice-ui/preact.config.js
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- This file is part of GNU Taler
- (C) 2021-2023 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-/**
-*
-* @author Sebastian Javier Marchano (sebasjm)
-*/
-
-import { DefinePlugin } from 'webpack';
-
-import pack from './package.json';
-import * as cp from 'child_process';
-
-const commitHash = cp.execSync('git rev-parse --short HEAD').toString();
-
-export default {
- webpack(config, env, helpers) {
- // ensure that process.env will not be undefined on runtime
- config.node.process = 'mock'
-
- // add __VERSION__ to be use in the html
- config.plugins.push(
- new DefinePlugin({
- 'process.env.__VERSION__': JSON.stringify(env.isProd ? pack.version :
`dev-${commitHash}`) ,
- }),
- );
-
- // suddenly getting out of memory error from build process, error below [1]
- // FIXME: remove preact-cli, use rollup
- let { index } = helpers.getPluginsByName(config,
'WebpackFixStyleOnlyEntriesPlugin')[0]
- config.plugins.splice(index, 1)
- }
-}
-
-
-
-/* [1] from this error decided to remove plugin 'webpack-fix-style-only-entries
- leaving this error for future reference
-
-
-<--- Last few GCs --->
-
-[32479:0x2e01870] 19969 ms: Mark-sweep 1869.4 (1950.2) -> 1443.1 (1504.1)
MB, 497.5 / 0.0 ms (average mu = 0.631, current mu = 0.455) allocation failure
scavenge might not succeed
-[32479:0x2e01870] 21907 ms: Mark-sweep 2016.9 (2077.9) -> 1628.6 (1681.4)
MB, 1596.0 / 0.0 ms (average mu = 0.354, current mu = 0.176) allocation
failure scavenge might not succeed
-
-<--- JS stacktrace --->
-
-==== JS stack trace =========================================
-
- 0: ExitFrame [pc: 0x13cf099]
-Security context: 0x2f4ca66c08d1 <JSObject>
- 1: /* anonymous * / [0x35d05555b4b9]
[...path/merchant-backoffice/node_modules/.pnpm/webpack-fix-style-only-entries@0.5.2/node_modules/webpack-fix-style-only-entries/index.js:~80]
[pc=0x2145e699d1a4](this=0x1149465410e9 <GlobalObject Object map =
0xff481b5b5f9>,0x047e52e36a49 <Dependency map = 0x1ed1fe41cd19>)
- 2: arguments adaptor frame: 3...
-
-FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of
memory
-
-*/
\ No newline at end of file
diff --git a/packages/merchant-backoffice-ui/preact.single-config.js
b/packages/merchant-backoffice-ui/preact.single-config.js
deleted file mode 100644
index d3640a5a6..000000000
--- a/packages/merchant-backoffice-ui/preact.single-config.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- This file is part of GNU Taler
- (C) 2021-2023 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-
-/**
-*
-* @author Sebastian Javier Marchano (sebasjm)
-*/
-
-import defaultConfig from './preact.config'
-
-export default {
- webpack(config, env, helpers, options) {
- defaultConfig.webpack(config, env, helpers, options)
-
- //1. check no file is under /routers or /component/{routers,async} to
prevent async components
- // https://github.com/preactjs/preact-cli#route-based-code-splitting
-
- //2. remove devtools to prevent sourcemaps
- config.devtool = false
-
- //3. change assetLoader to load assets inline
- const loaders = helpers.getLoaders(config)
- const assetsLoader = loaders.find(lo =>
lo.rule.test.test('something.woff'))
- if (assetsLoader) {
- assetsLoader.rule.use = 'base64-inline-loader'
- assetsLoader.rule.loader = undefined
- }
-
- //4. remove critters
- //critters remove the css bundle from htmlWebpackPlugin.files.css
- //for now, pushing all the content into the html is enough
- const crittersWrapper = helpers.getPluginsByName(config, 'Critters')
- if (crittersWrapper && crittersWrapper.length > 0) {
- const [{ index }] = crittersWrapper
- config.plugins.splice(index, 1)
- }
-
- //5. remove favicon from src/assets
-
- //6. remove performance hints since we now that this is going to be big
- if (config.performance) {
- config.performance.hints = false
- }
-
- //7. template.html should have a favicon and add js/css content
-
- //last, after building remove the mysterious link to stylesheet with
remove-link-stylesheet.sh
- }
-}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7a413ed81..2a52759d3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -706,9 +706,6 @@ importers:
mocha:
specifier: ^9.2.0
version: 9.2.2
- preact-cli:
- specifier: ^3.3.5
- version:
3.4.1(eslint@8.56.0)(preact-render-to-string@5.2.6)(preact@10.11.3)
sass:
specifier: 1.56.1
version: 1.56.1
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: removing preact-cli dep,
gnunet <=