@docusaurus/plugin-pwa 0.0.0-5008 → 0.0.0-5012
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/lib/index.js +4 -4
- package/package.json +8 -8
- package/src/index.ts +6 -8
- package/src/theme/PwaReloadPopup/index.tsx +0 -1
package/lib/index.js
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.validateOptions = void 0;
|
|
10
10
|
const tslib_1 = require("tslib");
|
|
11
|
-
const utils_1 = require("@docusaurus/utils");
|
|
12
|
-
const utils_2 = require("@docusaurus/core/lib/webpack/utils");
|
|
13
|
-
const LogPlugin_1 = tslib_1.__importDefault(require("@docusaurus/core/lib/webpack/plugins/LogPlugin"));
|
|
14
|
-
const theme_translations_1 = require("@docusaurus/theme-translations");
|
|
15
11
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
16
12
|
const webpack_1 = tslib_1.__importDefault(require("webpack"));
|
|
17
13
|
const terser_webpack_plugin_1 = tslib_1.__importDefault(require("terser-webpack-plugin"));
|
|
18
14
|
const workbox_build_1 = require("workbox-build");
|
|
15
|
+
const utils_1 = require("@docusaurus/utils");
|
|
16
|
+
const utils_2 = require("@docusaurus/core/lib/webpack/utils");
|
|
17
|
+
const LogPlugin_1 = tslib_1.__importDefault(require("@docusaurus/core/lib/webpack/plugins/LogPlugin"));
|
|
18
|
+
const theme_translations_1 = require("@docusaurus/theme-translations");
|
|
19
19
|
const isProd = process.env.NODE_ENV === 'production';
|
|
20
20
|
function getSWBabelLoader() {
|
|
21
21
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-pwa",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5012",
|
|
4
4
|
"description": "Docusaurus Plugin to add PWA support.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-pwa.d.ts",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.17.10",
|
|
24
24
|
"@babel/preset-env": "^7.17.10",
|
|
25
|
-
"@docusaurus/core": "0.0.0-
|
|
26
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
27
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
28
|
-
"@docusaurus/utils": "0.0.0-
|
|
29
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
25
|
+
"@docusaurus/core": "0.0.0-5012",
|
|
26
|
+
"@docusaurus/theme-common": "0.0.0-5012",
|
|
27
|
+
"@docusaurus/theme-translations": "0.0.0-5012",
|
|
28
|
+
"@docusaurus/utils": "0.0.0-5012",
|
|
29
|
+
"@docusaurus/utils-validation": "0.0.0-5012",
|
|
30
30
|
"babel-loader": "^8.2.5",
|
|
31
31
|
"clsx": "^1.1.1",
|
|
32
32
|
"core-js": "^3.22.5",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"workbox-window": "^6.5.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
42
|
+
"@docusaurus/module-type-aliases": "0.0.0-5012",
|
|
43
43
|
"fs-extra": "^10.1.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^16.8.4 || ^17.0.0",
|
|
47
47
|
"react-dom": "^16.8.4 || ^17.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "23b7a134145506adf6db87c8e81640e3633c13ec"
|
|
50
50
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,18 +5,16 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {HtmlTags, LoadContext, Plugin} from '@docusaurus/types';
|
|
9
|
-
import type {PluginOptions} from '@docusaurus/plugin-pwa';
|
|
10
|
-
import {normalizeUrl} from '@docusaurus/utils';
|
|
11
|
-
import {compile} from '@docusaurus/core/lib/webpack/utils';
|
|
12
|
-
import LogPlugin from '@docusaurus/core/lib/webpack/plugins/LogPlugin';
|
|
13
|
-
import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
|
|
14
|
-
|
|
15
8
|
import path from 'path';
|
|
16
9
|
import webpack, {type Configuration} from 'webpack';
|
|
17
10
|
import Terser from 'terser-webpack-plugin';
|
|
18
|
-
|
|
19
11
|
import {injectManifest} from 'workbox-build';
|
|
12
|
+
import {normalizeUrl} from '@docusaurus/utils';
|
|
13
|
+
import {compile} from '@docusaurus/core/lib/webpack/utils';
|
|
14
|
+
import LogPlugin from '@docusaurus/core/lib/webpack/plugins/LogPlugin';
|
|
15
|
+
import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
|
|
16
|
+
import type {HtmlTags, LoadContext, Plugin} from '@docusaurus/types';
|
|
17
|
+
import type {PluginOptions} from '@docusaurus/plugin-pwa';
|
|
20
18
|
|
|
21
19
|
const isProd = process.env.NODE_ENV === 'production';
|
|
22
20
|
|