wxt 0.2.1 → 0.2.2
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/dist/cli.cjs +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
|
-
import { Manifest } from 'webextension-polyfill';
|
|
2
|
+
import { Manifest, Scripting } from 'webextension-polyfill';
|
|
3
3
|
import { UnimportOptions } from 'unimport';
|
|
4
4
|
|
|
5
5
|
interface InlineConfig {
|
|
@@ -146,7 +146,7 @@ interface WxtDevServer extends vite.ViteDevServer {
|
|
|
146
146
|
*
|
|
147
147
|
* @param contentScript The manifest definition for a content script
|
|
148
148
|
*/
|
|
149
|
-
reloadContentScript: (contentScript:
|
|
149
|
+
reloadContentScript: (contentScript: Omit<Scripting.RegisteredContentScript, 'id'>) => void;
|
|
150
150
|
}
|
|
151
151
|
type TargetBrowser = 'chrome' | 'firefox' | 'safari' | 'edge' | 'opera';
|
|
152
152
|
type TargetManifestVersion = 2 | 3;
|
|
@@ -353,7 +353,7 @@ interface ExtensionRunnerConfig {
|
|
|
353
353
|
|
|
354
354
|
type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
355
355
|
|
|
356
|
-
var version = "0.2.
|
|
356
|
+
var version = "0.2.2";
|
|
357
357
|
|
|
358
358
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
359
359
|
|
package/dist/index.js
CHANGED
|
@@ -1761,7 +1761,7 @@ function reloadContentScripts(steps, config, server) {
|
|
|
1761
1761
|
const js = [getEntrypointBundlePath(entry, config.outDir, ".js")];
|
|
1762
1762
|
const css = getContentScriptCssFiles([entry], server.currentOutput);
|
|
1763
1763
|
server.reloadContentScript({
|
|
1764
|
-
...
|
|
1764
|
+
...entry.options,
|
|
1765
1765
|
js,
|
|
1766
1766
|
css
|
|
1767
1767
|
});
|
|
@@ -1778,7 +1778,7 @@ function reloadHtmlPages(groups, server, config) {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
|
|
1780
1780
|
// package.json
|
|
1781
|
-
var version2 = "0.2.
|
|
1781
|
+
var version2 = "0.2.2";
|
|
1782
1782
|
|
|
1783
1783
|
// src/core/utils/defineConfig.ts
|
|
1784
1784
|
function defineConfig(config) {
|