extension-develop 3.8.1 → 3.8.2-canary.188.f7b796f

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.cjs +326 -276
  2. package/package.json +1 -1
package/dist/module.cjs CHANGED
@@ -131823,7 +131823,6 @@ var __webpack_modules__ = {
131823
131823
  "use strict";
131824
131824
  __webpack_require__.d(__webpack_exports__, {
131825
131825
  DX: ()=>optionalInstallFailed,
131826
- Jv: ()=>youAreAllSet,
131827
131826
  Se: ()=>missingSassDependency,
131828
131827
  Vo: ()=>optionalInstallManagerMissing,
131829
131828
  _j: ()=>optionalToolingSetup,
@@ -131847,9 +131846,6 @@ var __webpack_modules__ = {
131847
131846
  function isUsingIntegration(name) {
131848
131847
  return `${pintor__rspack_import_0_default().gray('►►►')} Using ${pintor__rspack_import_0_default().brightBlue(name)}...`;
131849
131848
  }
131850
- function youAreAllSet(name) {
131851
- return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed.`;
131852
- }
131853
131849
  function optionalToolingSetup(integrations, fallback, isAuthor) {
131854
131850
  const list = integrations && integrations.length > 0 ? integrations : [
131855
131851
  fallback
@@ -131918,6 +131914,7 @@ var __webpack_modules__ = {
131918
131914
  var _css_lib_messages__rspack_import_2 = __webpack_require__("./webpack/plugin-css/css-lib/messages.ts");
131919
131915
  var _css_lib_integrations__rspack_import_3 = __webpack_require__("./webpack/plugin-css/css-lib/integrations.ts");
131920
131916
  var _css_lib_is_content_script__rspack_import_4 = __webpack_require__("./webpack/plugin-css/css-lib/is-content-script.ts");
131917
+ var _webpack_lib_optional_deps_resolver__rspack_import_5 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
131921
131918
  let userMessageDelivered = false;
131922
131919
  function isUsingLess(projectPath) {
131923
131920
  if ((0, _css_lib_integrations__rspack_import_3.ws)(projectPath, 'less')) {
@@ -131929,36 +131926,22 @@ var __webpack_modules__ = {
131929
131926
  }
131930
131927
  return false;
131931
131928
  }
131932
- function resolveLessLoader(projectPath) {
131933
- const extensionRoot = (0, _css_lib_integrations__rspack_import_3.He)();
131934
- const paths = [
131935
- projectPath,
131936
- extensionRoot || void 0,
131937
- process.cwd()
131938
- ].filter(Boolean);
131939
- try {
131940
- return require.resolve('less-loader', {
131941
- paths
131942
- });
131943
- } catch {
131944
- return;
131945
- }
131946
- }
131947
131929
  async function maybeUseLess(projectPath, manifestPath) {
131948
131930
  const resolvedManifestPath = manifestPath || path__rspack_import_0.join(projectPath, 'manifest.json');
131949
131931
  if (!isUsingLess(projectPath)) return [];
131950
- let lessLoaderPath = resolveLessLoader(projectPath);
131951
- if (!lessLoaderPath) {
131952
- const lessDependencies = [
131932
+ const lessLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.f)({
131933
+ integration: 'LESS',
131934
+ projectPath,
131935
+ dependencyId: 'less-loader',
131936
+ installDependencies: [
131953
131937
  'less',
131954
131938
  'less-loader'
131955
- ];
131956
- const didInstall = await (0, _css_lib_integrations__rspack_import_3.tm)('LESS', lessDependencies);
131957
- if (!didInstall) throw new Error('[LESS] Optional dependencies failed to install.');
131958
- lessLoaderPath = resolveLessLoader(projectPath);
131959
- if (!lessLoaderPath) throw new Error('[LESS] less-loader could not be resolved after optional dependency installation.');
131960
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_css_lib_messages__rspack_import_2.Jv('LESS'));
131961
- }
131939
+ ],
131940
+ verifyPackageIds: [
131941
+ 'less',
131942
+ 'less-loader'
131943
+ ]
131944
+ });
131962
131945
  return [
131963
131946
  {
131964
131947
  test: /\.less$/,
@@ -132009,8 +131992,7 @@ var __webpack_modules__ = {
132009
131992
  var _css_lib_messages__rspack_import_4 = __webpack_require__("./webpack/plugin-css/css-lib/messages.ts");
132010
131993
  var _css_lib_integrations__rspack_import_5 = __webpack_require__("./webpack/plugin-css/css-lib/integrations.ts");
132011
131994
  var _tailwind__rspack_import_6 = __webpack_require__("./webpack/plugin-css/css-tools/tailwind.ts");
132012
- var _sass__rspack_import_7 = __webpack_require__("./webpack/plugin-css/css-tools/sass.ts");
132013
- var _less__rspack_import_8 = __webpack_require__("./webpack/plugin-css/css-tools/less.ts");
131995
+ var _webpack_lib_optional_deps_resolver__rspack_import_7 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
132014
131996
  let userMessageDelivered = false;
132015
131997
  const postCssConfigFiles = [
132016
131998
  '.postcssrc',
@@ -132181,24 +132163,6 @@ var __webpack_modules__ = {
132181
132163
  return false;
132182
132164
  }
132183
132165
  async function maybeUsePostCss(projectPath, opts) {
132184
- const getResolutionPaths = ()=>{
132185
- const extensionRoot = (0, _css_lib_integrations__rspack_import_5.He)();
132186
- const paths = [
132187
- projectPath,
132188
- extensionRoot || void 0,
132189
- process.cwd()
132190
- ].filter(Boolean);
132191
- return Array.from(new Set(paths));
132192
- };
132193
- const resolvePostCssLoader = ()=>{
132194
- try {
132195
- return require.resolve('postcss-loader', {
132196
- paths: getResolutionPaths()
132197
- });
132198
- } catch {
132199
- return;
132200
- }
132201
- };
132202
132166
  const userPostCssConfig = findPostCssConfig(projectPath);
132203
132167
  const userConfigMentionsTailwind = userConfigMentionsTailwindPlugin(userPostCssConfig);
132204
132168
  const userConfigUsesDirectTailwindReference = userConfigUsesDirectTailwindPluginReference(userPostCssConfig);
@@ -132221,20 +132185,19 @@ var __webpack_modules__ = {
132221
132185
  const tailwindPresent = (0, _tailwind__rspack_import_6.F)(projectPath);
132222
132186
  const tailwindConfigured = tailwindPresent || userConfigMentionsTailwind;
132223
132187
  if (!userPostCssConfig && !pkgHasPostCss && !tailwindPresent) return {};
132224
- let resolvedPostCssLoader = resolvePostCssLoader();
132225
- if (!resolvedPostCssLoader) {
132226
- if (!(0, _sass__rspack_import_7.fZ)(projectPath) && !(0, _less__rspack_import_8.K)(projectPath)) {
132227
- const postCssDependencies = [
132228
- 'postcss',
132229
- 'postcss-loader'
132230
- ];
132231
- const didInstall = await (0, _css_lib_integrations__rspack_import_5.tm)('PostCSS', postCssDependencies);
132232
- if (!didInstall) throw new Error('[PostCSS] Optional dependencies failed to install.');
132233
- }
132234
- resolvedPostCssLoader = resolvePostCssLoader();
132235
- if (!resolvedPostCssLoader) throw new Error('[PostCSS] postcss-loader could not be resolved after optional dependency installation.');
132236
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_css_lib_messages__rspack_import_4.Jv('PostCSS'));
132237
- }
132188
+ const resolvedPostCssLoader = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.f)({
132189
+ integration: 'PostCSS',
132190
+ projectPath,
132191
+ dependencyId: 'postcss-loader',
132192
+ installDependencies: [
132193
+ 'postcss',
132194
+ 'postcss-loader'
132195
+ ],
132196
+ verifyPackageIds: [
132197
+ 'postcss',
132198
+ 'postcss-loader'
132199
+ ]
132200
+ });
132238
132201
  let pluginsFromOptions;
132239
132202
  const shouldInjectTailwindPlugin = tailwindConfigured && !pkgHasPostCss && (!userPostCssConfig || userConfigIsCjsInEsm || userConfigMentionsTailwind);
132240
132203
  const declaredTailwindMajor = getDeclaredTailwindMajor(projectPath);
@@ -132363,6 +132326,7 @@ var __webpack_modules__ = {
132363
132326
  var pintor__rspack_import_2_default = /*#__PURE__*/ __webpack_require__.n(pintor__rspack_import_2);
132364
132327
  var _css_lib_messages__rspack_import_3 = __webpack_require__("./webpack/plugin-css/css-lib/messages.ts");
132365
132328
  var _css_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-css/css-lib/integrations.ts");
132329
+ var _webpack_lib_optional_deps_resolver__rspack_import_5 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
132366
132330
  let userMessageDelivered = false;
132367
132331
  function isUsingSass(projectPath) {
132368
132332
  if ((0, _css_lib_integrations__rspack_import_4.ws)(projectPath, 'sass')) {
@@ -132374,26 +132338,13 @@ var __webpack_modules__ = {
132374
132338
  }
132375
132339
  return false;
132376
132340
  }
132377
- function resolveSassLoader(projectPath) {
132341
+ function resolveSassImplementation(projectPath) {
132378
132342
  const extensionRoot = (0, _css_lib_integrations__rspack_import_4.He)();
132379
- const paths = [
132343
+ const bases = [
132380
132344
  projectPath,
132381
132345
  extensionRoot || void 0,
132382
132346
  process.cwd()
132383
132347
  ].filter(Boolean);
132384
- try {
132385
- return require.resolve('sass-loader', {
132386
- paths
132387
- });
132388
- } catch {
132389
- return;
132390
- }
132391
- }
132392
- function resolveSassImplementation(projectPath) {
132393
- const bases = [
132394
- projectPath,
132395
- process.cwd()
132396
- ];
132397
132348
  for (const base of bases)try {
132398
132349
  const req = (0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(base, 'package.json'));
132399
132350
  let mod = req('sass');
@@ -132423,24 +132374,23 @@ var __webpack_modules__ = {
132423
132374
  }
132424
132375
  async function maybeUseSass(projectPath) {
132425
132376
  if (!isUsingSass(projectPath)) return [];
132426
- let sassLoaderPath = resolveSassLoader(projectPath);
132427
- if (!sassLoaderPath) {
132428
- const postCssDependencies = [
132377
+ const sassLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.f)({
132378
+ integration: 'SASS',
132379
+ projectPath,
132380
+ dependencyId: 'sass-loader',
132381
+ installDependencies: [
132429
132382
  'postcss-loader',
132430
132383
  'postcss-scss',
132431
- 'postcss-preset-env'
132432
- ];
132433
- const didInstallPostCss = await (0, _css_lib_integrations__rspack_import_4.tm)('PostCSS', postCssDependencies);
132434
- if (!didInstallPostCss) throw new Error('[PostCSS] Optional dependencies failed to install.');
132435
- const sassDependencies = [
132384
+ 'postcss-preset-env',
132436
132385
  'sass-loader'
132437
- ];
132438
- const didInstallSass = await (0, _css_lib_integrations__rspack_import_4.tm)('SASS', sassDependencies);
132439
- if (!didInstallSass) throw new Error('[SASS] Optional dependencies failed to install.');
132440
- sassLoaderPath = resolveSassLoader(projectPath);
132441
- if (!sassLoaderPath) throw new Error('[SASS] sass-loader could not be resolved after optional dependency installation.');
132442
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_css_lib_messages__rspack_import_3.Jv('SASS'));
132443
- }
132386
+ ],
132387
+ verifyPackageIds: [
132388
+ 'postcss-loader',
132389
+ 'postcss-scss',
132390
+ 'postcss-preset-env',
132391
+ 'sass-loader'
132392
+ ]
132393
+ });
132444
132394
  return [
132445
132395
  {
132446
132396
  test: /\.(sass|scss)$/,
@@ -132500,9 +132450,7 @@ var __webpack_modules__ = {
132500
132450
  "use strict";
132501
132451
  __webpack_require__.d(__webpack_exports__, {
132502
132452
  Dy: ()=>_plugin_css_css_lib_integrations__rspack_import_0.Dy,
132503
- He: ()=>_plugin_css_css_lib_integrations__rspack_import_0.He,
132504
132453
  qQ: ()=>isUsingJSFramework,
132505
- tm: ()=>_plugin_css_css_lib_integrations__rspack_import_0.tm,
132506
132454
  ws: ()=>_plugin_css_css_lib_integrations__rspack_import_0.ws
132507
132455
  });
132508
132456
  var _plugin_css_css_lib_integrations__rspack_import_0 = __webpack_require__("./webpack/plugin-css/css-lib/integrations.ts");
@@ -132565,7 +132513,6 @@ var __webpack_modules__ = {
132565
132513
  "use strict";
132566
132514
  __webpack_require__.d(__webpack_exports__, {
132567
132515
  Ei: ()=>jsFrameworksHmrSummary,
132568
- Jv: ()=>youAreAllSet,
132569
132516
  LR: ()=>creatingTSConfig,
132570
132517
  MH: ()=>jsFrameworksConfigsDetected,
132571
132518
  Q2: ()=>optionalDepsReady,
@@ -132578,9 +132525,6 @@ var __webpack_modules__ = {
132578
132525
  function isUsingIntegration(name) {
132579
132526
  return `${pintor__rspack_import_0_default().gray('►►►')} Using ${pintor__rspack_import_0_default().brightBlue(name)}...`;
132580
132527
  }
132581
- function youAreAllSet(name) {
132582
- return `${pintor__rspack_import_0_default().green('►►►')} ${name} installation completed.`;
132583
- }
132584
132528
  function optionalDepsReady(integrations) {
132585
132529
  const list = integrations.length > 0 ? integrations.map((name)=>pintor__rspack_import_0_default().yellow(name)).join(', ') : pintor__rspack_import_0_default().gray('optional');
132586
132530
  return `${pintor__rspack_import_0_default().green('►►►')} All set — ${list} tooling is ready.`;
@@ -132617,36 +132561,8 @@ var __webpack_modules__ = {
132617
132561
  var pintor__rspack_import_2_default = /*#__PURE__*/ __webpack_require__.n(pintor__rspack_import_2);
132618
132562
  var _js_frameworks_lib_messages__rspack_import_3 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
132619
132563
  var _frameworks_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
132564
+ var _webpack_lib_optional_deps_resolver__rspack_import_5 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
132620
132565
  let userMessageDelivered = false;
132621
- function resolveWithRuntimePaths(id, projectPath) {
132622
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_4.He)();
132623
- const paths = [
132624
- projectPath,
132625
- extensionRoot || void 0,
132626
- process.cwd()
132627
- ].filter(Boolean);
132628
- try {
132629
- return require.resolve(id, {
132630
- paths
132631
- });
132632
- } catch {
132633
- return;
132634
- }
132635
- }
132636
- function getPreactRefreshPlugin(projectPath) {
132637
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_4.He)();
132638
- const bases = [
132639
- projectPath,
132640
- extensionRoot || void 0,
132641
- process.cwd()
132642
- ].filter(Boolean);
132643
- for (const base of bases)try {
132644
- const req = (0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(base, 'package.json'));
132645
- const mod = req('@rspack/plugin-preact-refresh');
132646
- const plugin = mod && mod.default || mod;
132647
- if (plugin) return plugin;
132648
- } catch {}
132649
- }
132650
132566
  function isUsingPreact(projectPath) {
132651
132567
  if ((0, _frameworks_lib_integrations__rspack_import_4.ws)(projectPath, 'preact')) {
132652
132568
  if (!userMessageDelivered) {
@@ -132659,22 +132575,27 @@ var __webpack_modules__ = {
132659
132575
  }
132660
132576
  async function maybeUsePreact(projectPath) {
132661
132577
  if (!isUsingPreact(projectPath)) return;
132662
- let preactRefreshPath = resolveWithRuntimePaths('@rspack/plugin-preact-refresh', projectPath);
132663
- if (!preactRefreshPath) {
132664
- const preactDependencies = [
132665
- '@prefresh/core',
132666
- '@prefresh/utils',
132667
- '@rspack/plugin-preact-refresh',
132668
- 'preact'
132669
- ];
132670
- const didInstall = await (0, _frameworks_lib_integrations__rspack_import_4.tm)('Preact', preactDependencies);
132671
- if (!didInstall) throw new Error('[Preact] Optional dependencies failed to install.');
132672
- preactRefreshPath = resolveWithRuntimePaths('@rspack/plugin-preact-refresh', projectPath);
132673
- if (!preactRefreshPath) throw new Error('[Preact] @rspack/plugin-preact-refresh could not be resolved after optional dependency installation.');
132674
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_3.Jv('Preact'));
132675
- }
132676
- const PreactRefreshPlugin = getPreactRefreshPlugin(projectPath);
132677
- if (!PreactRefreshPlugin) throw new Error('[Preact] @rspack/plugin-preact-refresh is installed but its plugin could not be resolved.');
132578
+ const preactDependencies = [
132579
+ '@prefresh/core',
132580
+ '@prefresh/utils',
132581
+ '@rspack/plugin-preact-refresh',
132582
+ 'preact'
132583
+ ];
132584
+ await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.f)({
132585
+ integration: 'Preact',
132586
+ projectPath,
132587
+ dependencyId: '@rspack/plugin-preact-refresh',
132588
+ installDependencies: preactDependencies,
132589
+ verifyPackageIds: preactDependencies
132590
+ });
132591
+ const PreactRefreshPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.C)({
132592
+ integration: 'Preact',
132593
+ projectPath,
132594
+ dependencyId: '@rspack/plugin-preact-refresh',
132595
+ installDependencies: preactDependencies,
132596
+ verifyPackageIds: preactDependencies,
132597
+ moduleAdapter: (mod)=>mod && mod.default || mod
132598
+ });
132678
132599
  const preactPlugins = [
132679
132600
  new PreactRefreshPlugin({})
132680
132601
  ];
@@ -132717,36 +132638,8 @@ var __webpack_modules__ = {
132717
132638
  var pintor__rspack_import_2_default = /*#__PURE__*/ __webpack_require__.n(pintor__rspack_import_2);
132718
132639
  var _js_frameworks_lib_messages__rspack_import_3 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
132719
132640
  var _frameworks_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
132641
+ var _webpack_lib_optional_deps_resolver__rspack_import_5 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
132720
132642
  let userMessageDelivered = false;
132721
- function resolveWithRuntimePaths(id, projectPath) {
132722
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_4.He)();
132723
- const paths = [
132724
- projectPath,
132725
- extensionRoot || void 0,
132726
- process.cwd()
132727
- ].filter(Boolean);
132728
- try {
132729
- return require.resolve(id, {
132730
- paths
132731
- });
132732
- } catch {
132733
- return;
132734
- }
132735
- }
132736
- function getReactRefreshPlugin(projectPath) {
132737
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_4.He)();
132738
- const bases = [
132739
- projectPath,
132740
- extensionRoot || void 0,
132741
- process.cwd()
132742
- ].filter(Boolean);
132743
- for (const base of bases)try {
132744
- const req = (0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(base, 'package.json'));
132745
- const mod = req('@rspack/plugin-react-refresh');
132746
- const plugin = mod && mod.default || mod;
132747
- if (plugin) return plugin;
132748
- } catch {}
132749
- }
132750
132643
  function isUsingReact(projectPath) {
132751
132644
  if ((0, _frameworks_lib_integrations__rspack_import_4.ws)(projectPath, 'react')) {
132752
132645
  if (!userMessageDelivered) {
@@ -132759,20 +132652,25 @@ var __webpack_modules__ = {
132759
132652
  }
132760
132653
  async function maybeUseReact(projectPath) {
132761
132654
  if (!isUsingReact(projectPath)) return;
132762
- let reactRefreshPath = resolveWithRuntimePaths('react-refresh', projectPath);
132763
- if (!reactRefreshPath) {
132764
- const reactDependencies = [
132765
- 'react-refresh',
132766
- '@rspack/plugin-react-refresh'
132767
- ];
132768
- const didInstall = await (0, _frameworks_lib_integrations__rspack_import_4.tm)('React', reactDependencies);
132769
- if (!didInstall) throw new Error('[React] Optional dependencies failed to install.');
132770
- reactRefreshPath = resolveWithRuntimePaths('react-refresh', projectPath);
132771
- if (!reactRefreshPath) throw new Error('[React] react-refresh could not be resolved after optional dependency installation.');
132772
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_3.Jv('React'));
132773
- }
132774
- const ReactRefreshPlugin = getReactRefreshPlugin(projectPath);
132775
- if (!ReactRefreshPlugin) throw new Error('[React] @rspack/plugin-react-refresh is installed but its plugin could not be resolved.');
132655
+ const reactDependencies = [
132656
+ 'react-refresh',
132657
+ '@rspack/plugin-react-refresh'
132658
+ ];
132659
+ await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.f)({
132660
+ integration: 'React',
132661
+ projectPath,
132662
+ dependencyId: 'react-refresh',
132663
+ installDependencies: reactDependencies,
132664
+ verifyPackageIds: reactDependencies
132665
+ });
132666
+ const ReactRefreshPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_5.C)({
132667
+ integration: 'React',
132668
+ projectPath,
132669
+ dependencyId: '@rspack/plugin-react-refresh',
132670
+ installDependencies: reactDependencies,
132671
+ verifyPackageIds: reactDependencies,
132672
+ moduleAdapter: (mod)=>mod && mod.default || mod
132673
+ });
132776
132674
  const reactPlugins = [
132777
132675
  new ReactRefreshPlugin({
132778
132676
  overlay: false
@@ -132820,26 +132718,20 @@ var __webpack_modules__ = {
132820
132718
  });
132821
132719
  var path__rspack_import_0 = __webpack_require__("path");
132822
132720
  var fs__rspack_import_1 = __webpack_require__("fs");
132823
- var _js_frameworks_lib_messages__rspack_import_2 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
132824
- var _frameworks_lib_integrations__rspack_import_3 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
132825
- var _js_frameworks_lib_load_loader_options__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/load-loader-options.ts");
132721
+ var module__rspack_import_2 = __webpack_require__("module");
132722
+ var _js_frameworks_lib_messages__rspack_import_3 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
132723
+ var _frameworks_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
132724
+ var _js_frameworks_lib_load_loader_options__rspack_import_5 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/load-loader-options.ts");
132725
+ var _webpack_lib_optional_deps_resolver__rspack_import_6 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
132826
132726
  let userMessageDelivered = false;
132827
- function resolveWithRuntimePaths(id, projectPath) {
132828
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_3.He)();
132829
- const paths = [
132727
+ function resolveFromProject(id, projectPath) {
132728
+ for (const base of [
132830
132729
  projectPath,
132831
- extensionRoot || void 0,
132832
132730
  process.cwd()
132833
- ].filter(Boolean);
132834
- try {
132835
- return require.resolve(id, {
132836
- paths
132837
- });
132838
- } catch {
132839
- return;
132840
- }
132841
- }
132842
- function resolveFromProject(id, projectPath) {
132731
+ ])try {
132732
+ const req = (0, module__rspack_import_2.createRequire)(path__rspack_import_0.join(base, 'package.json'));
132733
+ return req.resolve(id);
132734
+ } catch {}
132843
132735
  try {
132844
132736
  return require.resolve(id, {
132845
132737
  paths: [
@@ -132852,43 +132744,40 @@ var __webpack_modules__ = {
132852
132744
  }
132853
132745
  }
132854
132746
  function isUsingSvelte(projectPath) {
132855
- const using = (0, _frameworks_lib_integrations__rspack_import_3.ws)(projectPath, 'svelte');
132747
+ const using = (0, _frameworks_lib_integrations__rspack_import_4.ws)(projectPath, 'svelte');
132856
132748
  if (using && !userMessageDelivered) {
132857
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_2.zA('Svelte'));
132749
+ if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_3.zA('Svelte'));
132858
132750
  userMessageDelivered = true;
132859
132751
  }
132860
132752
  return using;
132861
132753
  }
132862
132754
  async function maybeUseSvelte(projectPath, mode) {
132863
132755
  if (!isUsingSvelte(projectPath)) return;
132864
- let svelteLoaderPath = resolveFromProject('svelte-loader', projectPath) || resolveWithRuntimePaths('svelte-loader', projectPath);
132865
- if (!svelteLoaderPath) {
132866
- const typeScriptDependencies = [
132867
- "typescript"
132868
- ];
132869
- const didInstallTs = await (0, _frameworks_lib_integrations__rspack_import_3.tm)('TypeScript', typeScriptDependencies);
132870
- if (!didInstallTs) throw new Error('[TypeScript] Optional dependencies failed to install.');
132871
- const svelteDependencies = [
132756
+ const svelteLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_6.f)({
132757
+ integration: 'Svelte',
132758
+ projectPath,
132759
+ dependencyId: 'svelte-loader',
132760
+ installDependencies: [
132761
+ "typescript",
132872
132762
  'svelte-loader'
132873
- ];
132874
- const didInstallSvelte = await (0, _frameworks_lib_integrations__rspack_import_3.tm)('Svelte', svelteDependencies);
132875
- if (!didInstallSvelte) throw new Error('[Svelte] Optional dependencies failed to install.');
132876
- svelteLoaderPath = resolveFromProject('svelte-loader', projectPath) || resolveWithRuntimePaths('svelte-loader', projectPath);
132877
- if (!svelteLoaderPath) throw new Error('[Svelte] svelte-loader could not be resolved after optional dependency installation.');
132878
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_2.Jv('Svelte'));
132879
- }
132880
- const resolvedTypescript = resolveFromProject("typescript", projectPath) || resolveWithRuntimePaths("typescript", projectPath);
132881
- if (!resolvedTypescript) {
132882
- const typeScriptDependencies = [
132763
+ ],
132764
+ verifyPackageIds: [
132765
+ "typescript",
132766
+ 'svelte-loader'
132767
+ ]
132768
+ });
132769
+ await (0, _webpack_lib_optional_deps_resolver__rspack_import_6.f)({
132770
+ integration: 'TypeScript',
132771
+ projectPath,
132772
+ dependencyId: "typescript",
132773
+ installDependencies: [
132883
132774
  "typescript"
132884
- ];
132885
- const didInstallTs = await (0, _frameworks_lib_integrations__rspack_import_3.tm)('TypeScript', typeScriptDependencies);
132886
- if (!didInstallTs) throw new Error('[TypeScript] Optional dependencies failed to install.');
132887
- const reResolvedTypescript = resolveFromProject("typescript", projectPath) || resolveWithRuntimePaths("typescript", projectPath);
132888
- if (!reResolvedTypescript) throw new Error('[TypeScript] TypeScript could not be resolved after optional dependency installation.');
132889
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_2.Jv('TypeScript'));
132890
- }
132891
- const customOptions = await (0, _js_frameworks_lib_load_loader_options__rspack_import_4.g)(projectPath, 'svelte');
132775
+ ],
132776
+ verifyPackageIds: [
132777
+ "typescript"
132778
+ ]
132779
+ });
132780
+ const customOptions = await (0, _js_frameworks_lib_load_loader_options__rspack_import_5.g)(projectPath, 'svelte');
132892
132781
  const defaultLoaders = [
132893
132782
  {
132894
132783
  test: /\.svelte\.ts$/,
@@ -132982,6 +132871,7 @@ var __webpack_modules__ = {
132982
132871
  var pintor__rspack_import_2_default = /*#__PURE__*/ __webpack_require__.n(pintor__rspack_import_2);
132983
132872
  var _js_frameworks_lib_messages__rspack_import_3 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
132984
132873
  var _frameworks_lib_integrations__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
132874
+ __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
132985
132875
  let hasShownUserMessage = false;
132986
132876
  function findNearestPackageJsonDirectory(startPath) {
132987
132877
  let currentDirectory = startPath;
@@ -133102,36 +132992,8 @@ var __webpack_modules__ = {
133102
132992
  var _js_frameworks_lib_messages__rspack_import_4 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/messages.ts");
133103
132993
  var _frameworks_lib_integrations__rspack_import_5 = __webpack_require__("./webpack/plugin-js-frameworks/frameworks-lib/integrations.ts");
133104
132994
  var _js_frameworks_lib_load_loader_options__rspack_import_6 = __webpack_require__("./webpack/plugin-js-frameworks/js-frameworks-lib/load-loader-options.ts");
132995
+ var _webpack_lib_optional_deps_resolver__rspack_import_7 = __webpack_require__("./webpack/webpack-lib/optional-deps-resolver.ts");
133105
132996
  let userMessageDelivered = false;
133106
- function resolveWithRuntimePaths(id, projectPath) {
133107
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_5.He)();
133108
- const paths = [
133109
- projectPath,
133110
- extensionRoot || void 0,
133111
- process.cwd()
133112
- ].filter(Boolean);
133113
- try {
133114
- return require.resolve(id, {
133115
- paths
133116
- });
133117
- } catch {
133118
- return;
133119
- }
133120
- }
133121
- function getVueLoaderPlugin(projectPath) {
133122
- const extensionRoot = (0, _frameworks_lib_integrations__rspack_import_5.He)();
133123
- const bases = [
133124
- projectPath,
133125
- extensionRoot || void 0,
133126
- process.cwd()
133127
- ].filter(Boolean);
133128
- for (const base of bases)try {
133129
- const req = (0, module__rspack_import_1.createRequire)(path__rspack_import_0.join(base, 'package.json'));
133130
- const mod = req('vue-loader');
133131
- const plugin = mod && mod.VueLoaderPlugin || mod && mod.default && mod.default.VueLoaderPlugin;
133132
- if (plugin) return plugin;
133133
- } catch {}
133134
- }
133135
132997
  function isUsingVue(projectPath) {
133136
132998
  const using = (0, _frameworks_lib_integrations__rspack_import_5.ws)(projectPath, 'vue');
133137
132999
  if (using && !userMessageDelivered) {
@@ -133142,20 +133004,25 @@ var __webpack_modules__ = {
133142
133004
  }
133143
133005
  async function maybeUseVue(projectPath, mode = 'development') {
133144
133006
  if (!isUsingVue(projectPath)) return;
133145
- let vueLoaderPath = resolveWithRuntimePaths('vue-loader', projectPath);
133146
- if (!vueLoaderPath) {
133147
- const vueDependencies = [
133148
- 'vue-loader',
133149
- '@vue/compiler-sfc'
133150
- ];
133151
- const didInstall = await (0, _frameworks_lib_integrations__rspack_import_5.tm)('Vue', vueDependencies);
133152
- if (!didInstall) throw new Error('[Vue] Optional dependencies failed to install.');
133153
- vueLoaderPath = resolveWithRuntimePaths('vue-loader', projectPath);
133154
- if (!vueLoaderPath) throw new Error('[Vue] vue-loader could not be resolved after optional dependency installation.');
133155
- if ('true' === process.env.EXTENSION_AUTHOR_MODE) console.log(_js_frameworks_lib_messages__rspack_import_4.Jv('Vue'));
133156
- }
133157
- const VueLoaderPlugin = getVueLoaderPlugin(projectPath);
133158
- if (!VueLoaderPlugin) throw new Error('[Vue] vue-loader is installed but VueLoaderPlugin could not be resolved.');
133007
+ const vueDependencies = [
133008
+ 'vue-loader',
133009
+ '@vue/compiler-sfc'
133010
+ ];
133011
+ const vueLoaderPath = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.f)({
133012
+ integration: 'Vue',
133013
+ projectPath,
133014
+ dependencyId: 'vue-loader',
133015
+ installDependencies: vueDependencies,
133016
+ verifyPackageIds: vueDependencies
133017
+ });
133018
+ const VueLoaderPlugin = await (0, _webpack_lib_optional_deps_resolver__rspack_import_7.C)({
133019
+ integration: 'Vue',
133020
+ projectPath,
133021
+ dependencyId: 'vue-loader',
133022
+ installDependencies: vueDependencies,
133023
+ verifyPackageIds: vueDependencies,
133024
+ moduleAdapter: (mod)=>mod && mod.VueLoaderPlugin || mod && mod.default && mod.default.VueLoaderPlugin
133025
+ });
133159
133026
  const customOptions = await (0, _js_frameworks_lib_load_loader_options__rspack_import_6.g)(projectPath, 'vue');
133160
133027
  const defaultLoaders = [
133161
133028
  {
@@ -133993,6 +133860,189 @@ var __webpack_modules__ = {
133993
133860
  return `${getLoggingPrefix('error')} Your project declares dependencies that are managed by ${pintor__rspack_import_2_default().blue('Extension.js')} and referenced in ${pintor__rspack_import_2_default().underline('extension.config.js')}\n${pintor__rspack_import_2_default().red('This can cause version conflicts and break the development/build process.')}\n\n${pintor__rspack_import_2_default().gray('Managed dependencies (remove these from your package.json):')}\n${list}\n\n${pintor__rspack_import_2_default().gray('PATH')} ${pintor__rspack_import_2_default().underline(userPackageJsonPath)}\nIf you need a different version, open an issue so we can consider bundling it safely.\nOperation aborted.`;
133994
133861
  }
133995
133862
  },
133863
+ "./webpack/webpack-lib/optional-deps-resolver.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
133864
+ "use strict";
133865
+ __webpack_require__.d(__webpack_exports__, {
133866
+ C: ()=>ensureOptionalModuleLoaded,
133867
+ f: ()=>ensureOptionalPackageResolved
133868
+ });
133869
+ var fs__rspack_import_0 = __webpack_require__("fs");
133870
+ var path__rspack_import_1 = __webpack_require__("path");
133871
+ var module__rspack_import_2 = __webpack_require__("module");
133872
+ var _plugin_css_css_lib_integrations__rspack_import_3 = __webpack_require__("./webpack/plugin-css/css-lib/integrations.ts");
133873
+ const installSingleFlight = new Map();
133874
+ function getResolutionBases(projectPath) {
133875
+ const extensionRoot = (0, _plugin_css_css_lib_integrations__rspack_import_3.He)();
133876
+ const bases = [
133877
+ projectPath,
133878
+ extensionRoot || void 0,
133879
+ process.cwd()
133880
+ ].filter(Boolean);
133881
+ return Array.from(new Set(bases));
133882
+ }
133883
+ function packageJsonPath(basePath) {
133884
+ return path__rspack_import_1.join(basePath, 'package.json');
133885
+ }
133886
+ function tryResolveWithBase(dependencyId, basePath) {
133887
+ try {
133888
+ const req = (0, module__rspack_import_2.createRequire)(packageJsonPath(basePath));
133889
+ return req.resolve(dependencyId);
133890
+ } catch {
133891
+ return;
133892
+ }
133893
+ }
133894
+ function resolveDependency(dependencyId, projectPath) {
133895
+ const bases = getResolutionBases(projectPath);
133896
+ for (const basePath of bases){
133897
+ const resolvedPath = tryResolveWithBase(dependencyId, basePath);
133898
+ if (resolvedPath) return {
133899
+ resolvedPath,
133900
+ basePath
133901
+ };
133902
+ }
133903
+ try {
133904
+ const resolvedPath = require.resolve(dependencyId, {
133905
+ paths: bases
133906
+ });
133907
+ return {
133908
+ resolvedPath,
133909
+ basePath: projectPath
133910
+ };
133911
+ } catch {
133912
+ return;
133913
+ }
133914
+ }
133915
+ function verifyPackageInInstallRoot(packageId, installRoot) {
133916
+ const segments = packageId.split('/');
133917
+ const packageJson = path__rspack_import_1.join(installRoot, 'node_modules', ...segments, 'package.json');
133918
+ return fs__rspack_import_0.existsSync(packageJson);
133919
+ }
133920
+ function buildDiagnostics(input) {
133921
+ const bases = getResolutionBases(input.projectPath);
133922
+ const verifyState = input.verifyPackageIds.map((id)=>({
133923
+ dependency: id,
133924
+ existsAtInstallRoot: input.installRoot ? verifyPackageInInstallRoot(id, input.installRoot) : false
133925
+ }));
133926
+ return {
133927
+ integration: input.integration,
133928
+ dependencyId: input.dependencyId,
133929
+ projectPath: input.projectPath,
133930
+ installRoot: input.installRoot || null,
133931
+ installDependencies: input.installDependencies,
133932
+ verifyPackageIds: input.verifyPackageIds,
133933
+ resolutionBases: bases,
133934
+ verifyState
133935
+ };
133936
+ }
133937
+ async function runInstallAndVerify(input) {
133938
+ const didInstall = await (0, _plugin_css_css_lib_integrations__rspack_import_3.tm)(input.integration, input.installDependencies);
133939
+ if (!didInstall) {
133940
+ const diagnostics = buildDiagnostics({
133941
+ integration: input.integration,
133942
+ dependencyId: input.dependencyId,
133943
+ projectPath: input.projectPath,
133944
+ installRoot: input.installRoot,
133945
+ installDependencies: input.installDependencies,
133946
+ verifyPackageIds: input.verifyPackageIds
133947
+ });
133948
+ throw new Error(`[${input.integration}] Optional dependencies failed to install.\n` + JSON.stringify(diagnostics, null, 2));
133949
+ }
133950
+ if (!input.installRoot) {
133951
+ const diagnostics = buildDiagnostics({
133952
+ integration: input.integration,
133953
+ dependencyId: input.dependencyId,
133954
+ projectPath: input.projectPath,
133955
+ installRoot: input.installRoot,
133956
+ installDependencies: input.installDependencies,
133957
+ verifyPackageIds: input.verifyPackageIds
133958
+ });
133959
+ throw new Error(`[${input.integration}] Optional dependency install root is unavailable.\n` + JSON.stringify(diagnostics, null, 2));
133960
+ }
133961
+ const missingAfterInstall = input.verifyPackageIds.filter((id)=>!verifyPackageInInstallRoot(id, input.installRoot));
133962
+ if (missingAfterInstall.length > 0) {
133963
+ const diagnostics = buildDiagnostics({
133964
+ integration: input.integration,
133965
+ dependencyId: input.dependencyId,
133966
+ projectPath: input.projectPath,
133967
+ installRoot: input.installRoot,
133968
+ installDependencies: input.installDependencies,
133969
+ verifyPackageIds: input.verifyPackageIds
133970
+ });
133971
+ throw new Error(`[${input.integration}] Optional dependency install reported success but packages are missing: ${missingAfterInstall.join(', ')}.\n` + JSON.stringify(diagnostics, null, 2));
133972
+ }
133973
+ }
133974
+ async function ensureInstalledAndVerified(input) {
133975
+ const installRoot = (0, _plugin_css_css_lib_integrations__rspack_import_3.He)();
133976
+ const key = [
133977
+ installRoot || 'missing-install-root',
133978
+ ...input.installDependencies.slice().sort()
133979
+ ].join('::');
133980
+ const existing = installSingleFlight.get(key);
133981
+ if (existing) return void await existing;
133982
+ const installPromise = runInstallAndVerify({
133983
+ integration: input.integration,
133984
+ installDependencies: input.installDependencies,
133985
+ verifyPackageIds: input.verifyPackageIds,
133986
+ projectPath: input.projectPath,
133987
+ dependencyId: input.dependencyId,
133988
+ installRoot
133989
+ });
133990
+ installSingleFlight.set(key, installPromise);
133991
+ try {
133992
+ await installPromise;
133993
+ } finally{
133994
+ installSingleFlight.delete(key);
133995
+ }
133996
+ }
133997
+ async function ensureOptionalPackageResolved(input) {
133998
+ const resolvedBeforeInstall = resolveDependency(input.dependencyId, input.projectPath);
133999
+ if (resolvedBeforeInstall) return resolvedBeforeInstall.resolvedPath;
134000
+ const installDependencies = input.installDependencies || [
134001
+ input.dependencyId
134002
+ ];
134003
+ const verifyPackageIds = input.verifyPackageIds || installDependencies;
134004
+ await ensureInstalledAndVerified({
134005
+ integration: input.integration,
134006
+ installDependencies,
134007
+ verifyPackageIds,
134008
+ projectPath: input.projectPath,
134009
+ dependencyId: input.dependencyId
134010
+ });
134011
+ const resolvedAfterInstall = resolveDependency(input.dependencyId, input.projectPath);
134012
+ if (resolvedAfterInstall) return resolvedAfterInstall.resolvedPath;
134013
+ const diagnostics = buildDiagnostics({
134014
+ integration: input.integration,
134015
+ dependencyId: input.dependencyId,
134016
+ projectPath: input.projectPath,
134017
+ installRoot: (0, _plugin_css_css_lib_integrations__rspack_import_3.He)(),
134018
+ installDependencies,
134019
+ verifyPackageIds
134020
+ });
134021
+ throw new Error(`[${input.integration}] ${input.dependencyId} could not be resolved after optional dependency installation.\n` + JSON.stringify(diagnostics, null, 2));
134022
+ }
134023
+ async function ensureOptionalModuleLoaded(input) {
134024
+ await ensureOptionalPackageResolved(input);
134025
+ const resolution = resolveDependency(input.dependencyId, input.projectPath);
134026
+ if (!resolution) {
134027
+ const diagnostics = buildDiagnostics({
134028
+ integration: input.integration,
134029
+ dependencyId: input.dependencyId,
134030
+ projectPath: input.projectPath,
134031
+ installRoot: (0, _plugin_css_css_lib_integrations__rspack_import_3.He)(),
134032
+ installDependencies: input.installDependencies || [
134033
+ input.dependencyId
134034
+ ],
134035
+ verifyPackageIds: input.verifyPackageIds || input.installDependencies || [
134036
+ input.dependencyId
134037
+ ]
134038
+ });
134039
+ throw new Error(`[${input.integration}] ${input.dependencyId} could not be loaded after it resolved.\n` + JSON.stringify(diagnostics, null, 2));
134040
+ }
134041
+ const req = (0, module__rspack_import_2.createRequire)(packageJsonPath(resolution.basePath));
134042
+ const loaded = req(input.dependencyId);
134043
+ return input.moduleAdapter ? input.moduleAdapter(loaded) : loaded;
134044
+ }
134045
+ },
133996
134046
  "./webpack/webpack-lib/package-json.ts" (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
133997
134047
  "use strict";
133998
134048
  __webpack_require__.d(__webpack_exports__, {
@@ -134661,7 +134711,7 @@ var __webpack_modules__ = {
134661
134711
  },
134662
134712
  "./package.json" (module) {
134663
134713
  "use strict";
134664
- module.exports = JSON.parse('{"rE":"3.8.1","El":{"@rspack/core":"^1.7.5","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","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.19.0"}}');
134714
+ module.exports = JSON.parse('{"rE":"3.8.2-canary.188.f7b796f","El":{"@rspack/core":"^1.7.5","@rspack/dev-server":"^1.1.5","@swc/core":"^1.15.8","@swc/helpers":"^0.5.18","adm-zip":"^0.5.16","browser-extension-manifest-fields":"^2.2.1","case-sensitive-paths-webpack-plugin":"^2.4.0","chrome-location2":"4.0.0","chromium-location":"2.0.0","content-security-policy-parser":"^0.6.0","cross-spawn":"^7.0.6","dotenv":"^17.2.3","edge-location":"2.2.0","extension-from-store":"^0.1.1","firefox-location2":"3.0.0","go-git-it":"^5.1.1","ignore":"^7.0.5","loader-utils":"^3.3.1","magic-string":"^0.30.21","parse5":"^8.0.0","parse5-utilities":"^1.0.0","pintor":"0.3.0","schema-utils":"^4.3.3","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.19.0"}}');
134665
134715
  }
134666
134716
  };
134667
134717
  var __webpack_module_cache__ = {};
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "webpack/webpack-lib/build-dependencies.json"
25
25
  ],
26
26
  "name": "extension-develop",
27
- "version": "3.8.1",
27
+ "version": "3.8.2-canary.188.f7b796f",
28
28
  "description": "Develop, build, preview, and package Extension.js projects.",
29
29
  "author": {
30
30
  "name": "Cezar Augusto",