@flatjs/evolve 1.8.1-next.94 → 1.8.1-next.96
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @flatjs/evolve
|
2
2
|
|
3
|
+
## 1.8.1-next.96
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [41ca502]
|
8
|
+
- @flatjs/mock@1.8.1-next.74
|
9
|
+
|
10
|
+
## 1.8.1-next.95
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- e5bb77c: change `failOnError` as true for Circular
|
15
|
+
- Updated dependencies [c3a3400]
|
16
|
+
- Updated dependencies [2372f79]
|
17
|
+
- @flatjs/mock@1.8.1-next.73
|
18
|
+
|
3
19
|
## 1.8.1-next.94
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -1,7 +1,16 @@
|
|
1
1
|
import ImageMinimizerPlugin from 'image-minimizer-webpack-plugin';
|
2
2
|
/**
|
3
|
+
* Install libpng library & gifsicle tool
|
4
|
+
* macos
|
5
|
+
* =====================
|
3
6
|
* brew install libpng
|
4
7
|
* brew install gifsicle
|
8
|
+
*
|
9
|
+
* centos
|
10
|
+
* =====================
|
11
|
+
* sudo yum install libpng
|
12
|
+
* sudo yum install epel-release
|
13
|
+
* sudo yum install gifsicle
|
5
14
|
* @returns
|
6
15
|
*/
|
7
16
|
export declare const imageMinimizer: () => ImageMinimizerPlugin<unknown, unknown> | null;
|
@@ -1 +1 @@
|
|
1
|
-
import{relative}from"node:path";import{mergeOptions}from"@flatjs/common";import Graph from"tarjan-graph";import webpack from"webpack";const BASE_ERROR="Circular dependency detected:\r\n",PLUGIN_TITLE="CircularDependencyPlugin";export class CircularDependencyPlugin{constructor(o={}){this.options=mergeOptions({exclude:/node_modules/,include:/.*/,failOnError:!
|
1
|
+
import{relative}from"node:path";import{mergeOptions}from"@flatjs/common";import Graph from"tarjan-graph";import webpack from"webpack";const BASE_ERROR="Circular dependency detected:\r\n",PLUGIN_TITLE="CircularDependencyPlugin";export class CircularDependencyPlugin{constructor(o={}){this.options=mergeOptions({exclude:/node_modules/,include:/.*/,failOnError:!0,allowAsyncCycles:!1,projectCwd:process.cwd()},o)}apply(o){const e=this.options.projectCwd;o.hooks.compilation.tap(PLUGIN_TITLE,(o=>{o.hooks.optimizeModules.tap(PLUGIN_TITLE,(t=>{this.options.onStart&&this.options.onStart({compilation:o});const n=new(Graph.default||Graph);for(const e of t){const t=[];for(const n of e.dependencies){if(n.constructor&&"CommonJsSelfReferenceDependency"===n.constructor.name)continue;let r=null;r=o.moduleGraph?o.moduleGraph.getModule(n):n.module,r&&(r instanceof webpack.NormalModule&&r.resource&&(this.options.allowAsyncCycles&&n.weak||e!==r&&t.push(r.identifier())))}n.add(e.identifier(),t)}const r=n.getCycles();this.isCyclic(r,o,e),this.options.onEnd&&this.options.onEnd({compilation:o})}))}))}isCyclic(o,e,t){o.forEach((o=>{const n=o.slice().reverse().map((o=>{const t=e.findModule(o.name);return t instanceof webpack.NormalModule&&t.resource||null}));if(n.every((o=>!o||this.options.exclude.test(o)||!this.options.include.test(o))))return;const r=n.map((o=>relative(t,o)));if(this.options.onDetected){try{this.options.onDetected({paths:r.concat([r[0]]),compilation:e})}catch(o){e.errors.push(o)}return}const s=new Error(BASE_ERROR.concat(r.concat([r[0]]).join(" -> ")));this.options.failOnError?e.errors.push(s):e.warnings.push(s)}))}}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "1.8.1-next.
|
3
|
+
"version": "1.8.1-next.96",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"@flatjs/evolve-preset-babel": "1.8.1-next.17",
|
48
48
|
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.35",
|
49
49
|
"@flatjs/graph": "1.8.1-next.50",
|
50
|
-
"@flatjs/mock": "1.8.1-next.
|
50
|
+
"@flatjs/mock": "1.8.1-next.74",
|
51
51
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
52
52
|
"@types/babel__core": "7.20.1",
|
53
53
|
"babel-loader": "9.1.3",
|