@serwist/next 8.4.2 → 8.4.4
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/index.cjs +2 -7
- package/dist/index.js +2 -7
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -824,7 +824,7 @@ const withPWAInit = (pluginOptions)=>{
|
|
|
824
824
|
info("You may also want to add @serwist/next/typings to compilerOptions.types in your tsconfig.json/jsconfig.json.");
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
|
-
const { swSrc: providedSwSrc, swDest: providedSwDest, additionalPrecacheEntries, exclude = [],
|
|
827
|
+
const { swSrc: providedSwSrc, swDest: providedSwDest, additionalPrecacheEntries, exclude = [], manifestTransforms = [], ...otherBuildOptions } = buildOptions;
|
|
828
828
|
let swSrc = providedSwSrc;
|
|
829
829
|
let swDest = providedSwDest;
|
|
830
830
|
if (!path.isAbsolute(swSrc)) {
|
|
@@ -895,16 +895,11 @@ const withPWAInit = (pluginOptions)=>{
|
|
|
895
895
|
return false;
|
|
896
896
|
}
|
|
897
897
|
],
|
|
898
|
-
modifyURLPrefix: {
|
|
899
|
-
...modifyURLPrefix,
|
|
900
|
-
"/_next/../public/": "/"
|
|
901
|
-
},
|
|
902
898
|
manifestTransforms: [
|
|
903
899
|
...manifestTransforms,
|
|
904
900
|
async (manifestEntries, compilation)=>{
|
|
905
901
|
const manifest = manifestEntries.map((m)=>{
|
|
906
|
-
m.url = m.url.replace("/_next//static/image", "/_next/static/image");
|
|
907
|
-
m.url = m.url.replace("/_next//static/media", "/_next/static/media");
|
|
902
|
+
m.url = m.url.replace("/_next//static/image", "/_next/static/image").replace("/_next//static/media", "/_next/static/media").replace("/_next/../public", "");
|
|
908
903
|
if (m.revision === null) {
|
|
909
904
|
let key = m.url;
|
|
910
905
|
if (typeof publicPath === "string" && key.startsWith(publicPath)) {
|
package/dist/index.js
CHANGED
|
@@ -819,7 +819,7 @@ const withPWAInit = (pluginOptions)=>{
|
|
|
819
819
|
info("You may also want to add @serwist/next/typings to compilerOptions.types in your tsconfig.json/jsconfig.json.");
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
const { swSrc: providedSwSrc, swDest: providedSwDest, additionalPrecacheEntries, exclude = [],
|
|
822
|
+
const { swSrc: providedSwSrc, swDest: providedSwDest, additionalPrecacheEntries, exclude = [], manifestTransforms = [], ...otherBuildOptions } = buildOptions;
|
|
823
823
|
let swSrc = providedSwSrc;
|
|
824
824
|
let swDest = providedSwDest;
|
|
825
825
|
if (!path.isAbsolute(swSrc)) {
|
|
@@ -890,16 +890,11 @@ const withPWAInit = (pluginOptions)=>{
|
|
|
890
890
|
return false;
|
|
891
891
|
}
|
|
892
892
|
],
|
|
893
|
-
modifyURLPrefix: {
|
|
894
|
-
...modifyURLPrefix,
|
|
895
|
-
"/_next/../public/": "/"
|
|
896
|
-
},
|
|
897
893
|
manifestTransforms: [
|
|
898
894
|
...manifestTransforms,
|
|
899
895
|
async (manifestEntries, compilation)=>{
|
|
900
896
|
const manifest = manifestEntries.map((m)=>{
|
|
901
|
-
m.url = m.url.replace("/_next//static/image", "/_next/static/image");
|
|
902
|
-
m.url = m.url.replace("/_next//static/media", "/_next/static/media");
|
|
897
|
+
m.url = m.url.replace("/_next//static/image", "/_next/static/image").replace("/_next//static/media", "/_next/static/media").replace("/_next/../public", "");
|
|
903
898
|
if (m.revision === null) {
|
|
904
899
|
let key = m.url;
|
|
905
900
|
if (typeof publicPath === "string" && key.startsWith(publicPath)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/next",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates Serwist into your Next.js application.",
|
|
6
6
|
"files": [
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"clean-webpack-plugin": "4.0.0",
|
|
69
69
|
"fast-glob": "3.3.2",
|
|
70
|
-
"@serwist/build": "8.4.
|
|
71
|
-
"@serwist/webpack-plugin": "8.4.
|
|
72
|
-
"@serwist/window": "8.4.
|
|
70
|
+
"@serwist/build": "8.4.4",
|
|
71
|
+
"@serwist/webpack-plugin": "8.4.4",
|
|
72
|
+
"@serwist/window": "8.4.4"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/node": "20.10.5",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"type-fest": "4.8.3",
|
|
82
82
|
"typescript": "5.4.0-dev.20231226",
|
|
83
83
|
"webpack": "5.89.0",
|
|
84
|
-
"@serwist/constants": "8.4.
|
|
84
|
+
"@serwist/constants": "8.4.4"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"next": ">=14.0.0",
|