extension-develop 3.5.0-next.2 → 3.5.0-next.20
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.
- package/README.md +8 -8
- package/dist/547.cjs +2 -2
- package/dist/928.cjs +4 -4
- package/dist/module.cjs +225 -284
- package/package.json +6 -6
- package/webpack/webpack-lib/build-dependencies.json +24 -0
- package/dist/postinstall.cjs +0 -128769
- package/dist/postinstall.cjs.LICENSE.txt +0 -24
package/README.md
CHANGED
|
@@ -68,20 +68,20 @@ run()
|
|
|
68
68
|
- Rspack-based build with opinionated plugin stack
|
|
69
69
|
- Clean production output in `dist/<browser>`
|
|
70
70
|
- Zipping: distribution and/or source packages (respects `.gitignore`)
|
|
71
|
-
- Auto-install of missing dependencies
|
|
71
|
+
- Auto-install of missing build + optional dependencies on first run
|
|
72
72
|
- Type generation for TS projects via `extension-env.d.ts`
|
|
73
73
|
- User config via `extension.config.(js|mjs)` for commands, browser start, unified logger defaults, and webpack config hooks
|
|
74
74
|
- Managed dependency guard to avoid conflicts
|
|
75
75
|
|
|
76
76
|
## Commands
|
|
77
77
|
|
|
78
|
-
| Name | Summary
|
|
79
|
-
| ------- |
|
|
80
|
-
| dev | - Starts a local development server with live reload/HMR<br/>- Auto-installs
|
|
81
|
-
| build | - Production build using the webpack/Rspack plugin stack<br/>- Cleans `dist/<browser>` before emitting<br/>- Optional packaging: distribution zip and/or source zip<br/>- Merges user config; excludes browser runners during compilation
|
|
82
|
-
| start | - Runs a silent production build, then runs preview from `dist/<browser>`<br/>- Mirrors the runtime environment of shipped output
|
|
83
|
-
| preview | - Runs the extension for manual testing without dev server<br/>- Uses `dist/<browser>` when present, otherwise uses the project directory<br/>- Preserves production settings; only browser runners are applied
|
|
84
|
-
| cleanup | - Removes orphaned browser instances and temporary profiles created during development
|
|
78
|
+
| Name | Summary |
|
|
79
|
+
| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
80
|
+
| dev | - Starts a local development server with live reload/HMR<br/>- Auto-installs build + optional deps if missing<br/>- Generates TypeScript shim types (`extension-env.d.ts`) when applicable<br/>- Runs a target browser with an isolated/stable profile |
|
|
81
|
+
| build | - Production build using the webpack/Rspack plugin stack<br/>- Cleans `dist/<browser>` before emitting<br/>- Optional packaging: distribution zip and/or source zip<br/>- Merges user config; excludes browser runners during compilation |
|
|
82
|
+
| start | - Runs a silent production build, then runs preview from `dist/<browser>`<br/>- Mirrors the runtime environment of shipped output |
|
|
83
|
+
| preview | - Runs the extension for manual testing without dev server<br/>- Uses `dist/<browser>` when present, otherwise uses the project directory<br/>- Preserves production settings; only browser runners are applied |
|
|
84
|
+
| cleanup | - Removes orphaned browser instances and temporary profiles created during development |
|
|
85
85
|
|
|
86
86
|
## Command options
|
|
87
87
|
|
package/dist/547.cjs
CHANGED
|
@@ -1118,7 +1118,7 @@ exports.modules = {
|
|
|
1118
1118
|
}
|
|
1119
1119
|
function legacyManifestPathWarning(legacyPath) {
|
|
1120
1120
|
const lines = [];
|
|
1121
|
-
lines.push(
|
|
1121
|
+
lines.push("⚠ Deprecated manifest path detected. This will be rewritten to standardized folders in the next major.");
|
|
1122
1122
|
lines.push('');
|
|
1123
1123
|
lines.push(`${external_pintor_default().brightBlue('PATH')} ${external_pintor_default().underline(legacyPath)}`);
|
|
1124
1124
|
return lines.join('\n');
|
|
@@ -3786,7 +3786,7 @@ exports.modules = {
|
|
|
3786
3786
|
'}'
|
|
3787
3787
|
])) + ';';
|
|
3788
3788
|
const ClassicLoaderDisabled = `${_const} ${CLASSIC_LOADER} = ` + f('', [
|
|
3789
|
-
|
|
3789
|
+
"throw new Error(\"[webpack-target-webextension] Failed to load async chunk in the content script. No script loader is found. You can either\\n - Set output.environment.dynamicImport to true if your environment supports native ES Module\\n - Specify the background entry to enable the fallback loader\\n - Set module.parser.javascript.dynamicImportMode to 'eager' to inline all async chunks.\");"
|
|
3790
3790
|
]);
|
|
3791
3791
|
return Template.asString([
|
|
3792
3792
|
this.supportDynamicImport ? `${_let} bug816121warned, isNotIframe;` : '',
|
package/dist/928.cjs
CHANGED
|
@@ -61,16 +61,16 @@ exports.modules = {
|
|
|
61
61
|
return `Build failed to start:\n${external_pintor_default().red(text)}`;
|
|
62
62
|
}
|
|
63
63
|
function bundlerRecompiling() {
|
|
64
|
-
return
|
|
64
|
+
return "Recompiling due to file changes…";
|
|
65
65
|
}
|
|
66
66
|
function noEntrypointsDetected(port) {
|
|
67
67
|
return [
|
|
68
68
|
"No entrypoints or assets were produced by the initial compilation.",
|
|
69
69
|
`The dev server is running on 127.0.0.1:${external_pintor_default().brightBlue(port.toString())}, but nothing is being built.`,
|
|
70
70
|
"Possible causes:",
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
" • Empty or missing entry configuration.",
|
|
72
|
+
" • Extension-related plugins are disabled (entries not derived from manifest).",
|
|
73
|
+
" • All sources are ignored or excluded.",
|
|
74
74
|
`Try enabling verbose logs with ${external_pintor_default().brightBlue('EXTENSION_VERBOSE=1')} or review your extension config.`
|
|
75
75
|
].join('\n');
|
|
76
76
|
}
|