extension-develop 3.0.0-next.37 → 3.0.0-next.39

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.
Files changed (2) hide show
  1. package/dist/module.js +20 -2
  2. package/package.json +1 -1
package/dist/module.js CHANGED
@@ -5100,7 +5100,7 @@ var __webpack_modules__ = {
5100
5100
  },
5101
5101
  "./package.json": function(module) {
5102
5102
  "use strict";
5103
- module.exports = JSON.parse('{"i8":"3.0.0-next.37","HO":{"@rspack/core":"^1.6.3","@rspack/dev-server":"^1.1.4","@swc/core":"^1.13.2","@swc/helpers":"^0.5.15","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^4.0.1","chrome-location2":"3.2.1","chromium-location":"1.2.3","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^16.4.7","edge-location":"^2.1.1","firefox-location2":"2.1.1","go-git-it":"^5.0.0","ignore":"^6.0.2","loader-utils":"^3.3.1","magic-string":"^0.30.10","package-manager-detector":"^0.2.7","parse5":"^7.2.1","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.2.0","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.18.0"}}');
5103
+ module.exports = JSON.parse('{"i8":"3.0.0-next.39","HO":{"@rspack/core":"^1.6.3","@rspack/dev-server":"^1.1.4","@swc/core":"^1.13.2","@swc/helpers":"^0.5.15","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chokidar":"^4.0.1","chrome-location2":"3.2.1","chromium-location":"1.2.3","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^16.4.7","edge-location":"^2.1.1","firefox-location2":"2.1.1","go-git-it":"^5.0.0","ignore":"^6.0.2","loader-utils":"^3.3.1","magic-string":"^0.30.10","package-manager-detector":"^0.2.7","parse5":"^7.2.1","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.2.0","tiny-glob":"^0.2.9","unique-names-generator":"^4.7.1","webextension-polyfill":"^0.12.0","webpack-merge":"^6.0.1","webpack-target-webextension":"^2.1.3","ws":"^8.18.0"}}');
5104
5104
  }
5105
5105
  };
5106
5106
  var __webpack_module_cache__ = {};
@@ -6488,6 +6488,13 @@ var __webpack_exports__ = {};
6488
6488
  const pkgHasPostCss = hasPostCssInPackageJson(projectPath);
6489
6489
  const tailwindPresent = tailwind_isUsingTailwind(projectPath);
6490
6490
  if (!userPostCssConfig && !pkgHasPostCss && !tailwindPresent) return {};
6491
+ if (tailwindPresent) try {
6492
+ const req = (0, external_module_namespaceObject.createRequire)(external_path_.join(projectPath, 'package.json'));
6493
+ req.resolve('@tailwindcss/postcss');
6494
+ } catch {
6495
+ console.error(`PostCSS plugin "@tailwindcss/postcss" not found in ${projectPath}.\nInstall it in that package (e.g. "pnpm add -D @tailwindcss/postcss") and retry.`);
6496
+ process.exit(1);
6497
+ }
6491
6498
  try {
6492
6499
  require.resolve('postcss-loader');
6493
6500
  } catch (e) {
@@ -6513,6 +6520,16 @@ var __webpack_exports__ = {};
6513
6520
  }
6514
6521
  }
6515
6522
  }
6523
+ const reqFromProject = (0, external_module_namespaceObject.createRequire)(external_path_.join(projectPath, 'package.json'));
6524
+ let inlinePlugins;
6525
+ if (!userPostCssConfig && !pkgHasPostCss && tailwindPresent) try {
6526
+ inlinePlugins = [
6527
+ reqFromProject('@tailwindcss/postcss')
6528
+ ];
6529
+ } catch {
6530
+ console.error(`PostCSS plugin "@tailwindcss/postcss" not found in ${projectPath}.\nInstall it in that package (e.g. "pnpm add -D @tailwindcss/postcss") and retry.`);
6531
+ process.exit(1);
6532
+ }
6516
6533
  return {
6517
6534
  test: /\.css$/,
6518
6535
  type: 'css',
@@ -6522,7 +6539,8 @@ var __webpack_exports__ = {};
6522
6539
  postcssOptions: {
6523
6540
  ident: 'postcss',
6524
6541
  cwd: projectPath,
6525
- config: projectPath
6542
+ config: userPostCssConfig || pkgHasPostCss ? projectPath : false,
6543
+ plugins: inlinePlugins
6526
6544
  },
6527
6545
  sourceMap: 'development' === opts.mode
6528
6546
  }
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "dist"
22
22
  ],
23
23
  "name": "extension-develop",
24
- "version": "3.0.0-next.37",
24
+ "version": "3.0.0-next.39",
25
25
  "description": "The develop step of Extension.js",
26
26
  "author": {
27
27
  "name": "Cezar Augusto",