@rootreeweb/rt-webpack-helper 4.1.8 → 4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"getRules.d.ts","sourceRoot":"","sources":["../../src/getRules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAkFlD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,WAAW,EAAE,CAUjE"}
1
+ {"version":3,"file":"getRules.d.ts","sourceRoot":"","sources":["../../src/getRules.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAM3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAiFlD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,WAAW,EAAE,CAUjE"}
@@ -9,7 +9,6 @@ const require = createRequire(import.meta.url);
9
9
  let dir;
10
10
  try {
11
11
  dir = __dirname;
12
- // eslint-disable-next-line sonarjs/no-ignored-exceptions
13
12
  }
14
13
  catch (_e) {
15
14
  // eslint-disable-next-line
@@ -1 +1 @@
1
- {"version":3,"file":"getRules.js","sourceRoot":"","sources":["../../src/getRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EACN,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,6BAA6B,CAAC;AAGrC,MAAM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,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;gBACrC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,cAAc,EAAE,kCAAkC;qBAClD;iBACD;aACD;YACD,aAAa;YACb,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;SAC9B;KACD;IACD;QACC,SAAS,EAAE;YACV,QAAQ,EAAE,2BAA2B;SACrC;QACD,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,gBAAgB;KACtB;CACD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB;IACjD,MAAM,EAAE,eAAe,GAAG,EAAE,EAAE,aAAa,GAAG,EAAE,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IACnE,MAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QAClC,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;YACxE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { createRequire } from \"node:module\";\nimport { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport path from \"path\";\nimport MiniCssExtractPlugin from \"mini-css-extract-plugin\";\nimport type { RuleSetRule } from \"webpack\";\n\nimport {\n\tprotectSupportsPlugin,\n\trestoreSupportsPlugin,\n} from \"./postcssProtectSupports.js\";\nimport type { GetRulesOptions } from \"./types.js\";\n\nconst require = createRequire(import.meta.url);\n/* v8 ignore next 8 */\nlet dir;\ntry {\n\tdir = __dirname;\n\t// eslint-disable-next-line sonarjs/no-ignored-exceptions\n} catch (_e) {\n\t// eslint-disable-next-line\n\t// @ts-ignore\n\tdir = dirname(fileURLToPath(import.meta.url));\n}\nconst postcssLoader = {\n\tloader: require.resolve(\"postcss-loader\"),\n\toptions: {\n\t\tpostcssOptions: {\n\t\t\tplugins: [\n\t\t\t\t\"@tailwindcss/postcss\",\n\t\t\t\tprotectSupportsPlugin(),\n\t\t\t\t[\n\t\t\t\t\t\"postcss-preset-env\",\n\t\t\t\t\t{\n\t\t\t\t\t\tautoprefixer: true,\n\t\t\t\t\t\tbrowsers: \"> 1% in CA, not dead\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\trestoreSupportsPlugin(),\n\t\t\t],\n\t\t},\n\t},\n};\n\nconst baseRules: (RuleSetRule & { test: RegExp })[] = [\n\t{\n\t\texclude: /node_modules/,\n\t\ttest: /\\.tsx?$/,\n\t\tuse: require.resolve(\"ts-loader\"),\n\t},\n\t{\n\t\tresolve: {\n\t\t\tfullySpecified: false,\n\t\t},\n\t\ttest: /\\.m?js/,\n\t},\n\t{\n\t\texclude: /\\.module\\.s?css$/,\n\t\ttest: /\\.s?css$/,\n\t\tuse: [\n\t\t\tMiniCssExtractPlugin.loader,\n\t\t\trequire.resolve(\"css-loader\"),\n\t\t\tpostcssLoader,\n\t\t\tpath.resolve(dir, \"prefixPatcher.js\"),\n\t\t\trequire.resolve(\"sass-loader\"),\n\t\t],\n\t},\n\t{\n\t\tinclude: /\\.module\\.s?css$/,\n\t\ttest: /\\.s?css$/,\n\t\tuse: [\n\t\t\tMiniCssExtractPlugin.loader,\n\t\t\t{\n\t\t\t\tloader: require.resolve(\"css-loader\"),\n\t\t\t\toptions: {\n\t\t\t\t\tmodules: {\n\t\t\t\t\t\tlocalIdentName: \"[name]__[local]--[hash:base64:5]\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tpostcssLoader,\n\t\t\trequire.resolve(\"sass-loader\"),\n\t\t],\n\t},\n\t{\n\t\tgenerator: {\n\t\t\tfilename: \"assets/[name].[hash][ext]\",\n\t\t},\n\t\ttest: /\\.(png|jpe?g|gif|svg|webp)$/i,\n\t\ttype: \"asset/resource\",\n\t},\n];\n\n/**\n * Gets the rules for the configuration.\n *\n * @param options The options for the resolution rules.\n * @returns The resolution rules.\n */\nexport function getRules(options?: GetRulesOptions): RuleSetRule[] {\n\tconst { additionalRules = [], excludedRules = [] } = options ?? {};\n\tconst rules: RuleSetRule[] = [];\n\tfor (const baseRule of baseRules) {\n\t\tconst { test } = baseRule;\n\t\tif (!excludedRules.some((rule) => test.toString() === rule.toString())) {\n\t\t\trules.push(baseRule);\n\t\t}\n\t}\n\treturn rules.concat(additionalRules);\n}\n"]}
1
+ {"version":3,"file":"getRules.js","sourceRoot":"","sources":["../../src/getRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EACN,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,6BAA6B,CAAC;AAGrC,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,sBAAsB;AACtB,IAAI,GAAG,CAAC;AACR,IAAI,CAAC;IACJ,GAAG,GAAG,SAAS,CAAC;AACjB,CAAC;AAAC,OAAO,EAAE,EAAE,CAAC;IACb,2BAA2B;IAC3B,aAAa;IACb,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/C,CAAC;AACD,MAAM,aAAa,GAAG;IACrB,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACzC,OAAO,EAAE;QACR,cAAc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E,GAAG,OAAO,IAAI,EAAE,CAAC;IACnE,MAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;QAClC,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC;YACxE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtB,CAAC;IACF,CAAC;IACD,OAAO,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { createRequire } from \"node:module\";\nimport { dirname } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport path from \"path\";\nimport MiniCssExtractPlugin from \"mini-css-extract-plugin\";\nimport type { RuleSetRule } from \"webpack\";\n\nimport {\n\tprotectSupportsPlugin,\n\trestoreSupportsPlugin,\n} from \"./postcssProtectSupports.js\";\nimport type { GetRulesOptions } from \"./types.js\";\n\nconst require = createRequire(import.meta.url);\n/* v8 ignore next 8 */\nlet dir;\ntry {\n\tdir = __dirname;\n} catch (_e) {\n\t// eslint-disable-next-line\n\t// @ts-ignore\n\tdir = dirname(fileURLToPath(import.meta.url));\n}\nconst postcssLoader = {\n\tloader: require.resolve(\"postcss-loader\"),\n\toptions: {\n\t\tpostcssOptions: {\n\t\t\tplugins: [\n\t\t\t\t\"@tailwindcss/postcss\",\n\t\t\t\tprotectSupportsPlugin(),\n\t\t\t\t[\n\t\t\t\t\t\"postcss-preset-env\",\n\t\t\t\t\t{\n\t\t\t\t\t\tautoprefixer: true,\n\t\t\t\t\t\tbrowsers: \"> 1% in CA, not dead\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\trestoreSupportsPlugin(),\n\t\t\t],\n\t\t},\n\t},\n};\n\nconst baseRules: (RuleSetRule & { test: RegExp })[] = [\n\t{\n\t\texclude: /node_modules/,\n\t\ttest: /\\.tsx?$/,\n\t\tuse: require.resolve(\"ts-loader\"),\n\t},\n\t{\n\t\tresolve: {\n\t\t\tfullySpecified: false,\n\t\t},\n\t\ttest: /\\.m?js/,\n\t},\n\t{\n\t\texclude: /\\.module\\.s?css$/,\n\t\ttest: /\\.s?css$/,\n\t\tuse: [\n\t\t\tMiniCssExtractPlugin.loader,\n\t\t\trequire.resolve(\"css-loader\"),\n\t\t\tpostcssLoader,\n\t\t\tpath.resolve(dir, \"prefixPatcher.js\"),\n\t\t\trequire.resolve(\"sass-loader\"),\n\t\t],\n\t},\n\t{\n\t\tinclude: /\\.module\\.s?css$/,\n\t\ttest: /\\.s?css$/,\n\t\tuse: [\n\t\t\tMiniCssExtractPlugin.loader,\n\t\t\t{\n\t\t\t\tloader: require.resolve(\"css-loader\"),\n\t\t\t\toptions: {\n\t\t\t\t\tmodules: {\n\t\t\t\t\t\tlocalIdentName: \"[name]__[local]--[hash:base64:5]\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tpostcssLoader,\n\t\t\trequire.resolve(\"sass-loader\"),\n\t\t],\n\t},\n\t{\n\t\tgenerator: {\n\t\t\tfilename: \"assets/[name].[hash][ext]\",\n\t\t},\n\t\ttest: /\\.(png|jpe?g|gif|svg|webp)$/i,\n\t\ttype: \"asset/resource\",\n\t},\n];\n\n/**\n * Gets the rules for the configuration.\n *\n * @param options The options for the resolution rules.\n * @returns The resolution rules.\n */\nexport function getRules(options?: GetRulesOptions): RuleSetRule[] {\n\tconst { additionalRules = [], excludedRules = [] } = options ?? {};\n\tconst rules: RuleSetRule[] = [];\n\tfor (const baseRule of baseRules) {\n\t\tconst { test } = baseRule;\n\t\tif (!excludedRules.some((rule) => test.toString() === rule.toString())) {\n\t\t\trules.push(baseRule);\n\t\t}\n\t}\n\treturn rules.concat(additionalRules);\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rootreeweb/rt-webpack-helper",
3
- "version": "4.1.8",
3
+ "version": "4.1.9",
4
4
  "description": "JavaScript package for generating a standardized WebPack configuration for projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,45 +37,45 @@
37
37
  "test:watch": "vitest --coverage --ui"
38
38
  },
39
39
  "dependencies": {
40
- "@tailwindcss/postcss": "4.3.2",
40
+ "@tailwindcss/postcss": "4.3.3",
41
41
  "css-loader": "7.1.4",
42
42
  "css-minimizer-webpack-plugin": "8.0.0",
43
43
  "cssnano": "8.0.2",
44
- "html-webpack-plugin": "5.6.7",
44
+ "html-webpack-plugin": "5.6.8",
45
45
  "mini-css-extract-plugin": "2.10.2",
46
- "postcss": "8.5.16",
46
+ "postcss": "8.5.23",
47
47
  "postcss-loader": "8.2.1",
48
48
  "postcss-media-minmax": "5.0.0",
49
49
  "postcss-preset-env": "11.3.2",
50
- "sass": "1.101.0",
50
+ "sass": "1.102.0",
51
51
  "sass-loader": "17.0.0",
52
- "tailwindcss": "^4.3.2",
52
+ "tailwindcss": "^4.3.3",
53
53
  "ts-loader": "9.6.2",
54
54
  "webpack-dev-server": "^6.0.0",
55
55
  "webpack-manifest-plugin": "6.0.1",
56
56
  "webpack-remove-empty-scripts": "1.1.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@fontsource/inter": "^5.2.8",
60
- "@rootreeweb/linting": "4.2.8",
61
- "@rootreeweb/rt-node-lib": "8.2.7",
62
- "@rootreeweb/tsconfigs": "3.3.15",
63
- "@types/node": "^26.1.0",
59
+ "@fontsource/inter": "^5.3.0",
60
+ "@rootreeweb/linting": "4.2.9",
61
+ "@rootreeweb/rt-node-lib": "8.2.8",
62
+ "@rootreeweb/tsconfigs": "3.3.16",
63
+ "@types/node": "^26.1.2",
64
64
  "@types/webpack-dev-server": "^4.7.2",
65
65
  "@typescript/native-preview": "^7.0.0-dev.20260707.2",
66
66
  "@vitest/coverage-v8": "^4.1.10",
67
67
  "@vitest/ui": "^4.1.10",
68
68
  "del-cli": "^7.0.0",
69
- "eslint": "^10.6.0",
69
+ "eslint": "^10.8.0",
70
70
  "husky": "^9.1.7",
71
- "knip": "^6.25.0",
72
- "lint-staged": "^17.0.8",
73
- "memfs": "^4.63.0",
71
+ "knip": "^6.29.0",
72
+ "lint-staged": "^17.2.0",
73
+ "memfs": "^4.64.0",
74
74
  "prettier": "~3.8.5",
75
- "stylelint": "^17.14.0",
75
+ "stylelint": "^17.14.1",
76
76
  "typescript": "^6.0.3",
77
77
  "vitest": "^4.1.10",
78
- "webpack": "^5.108.4",
78
+ "webpack": "^5.109.0",
79
79
  "webpack-cli": "^7.2.1"
80
80
  },
81
81
  "peerDependencies": {