@vercel/static-build 1.3.24 → 1.3.25
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.js +3 -3
- package/dist/utils/nuxt.js +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -241820,7 +241820,7 @@ const build = async ({ files, entrypoint, workPath, config, meta = {}, }) => {
|
|
|
241820
241820
|
await NuxtUtils.injectVercelAnalyticsPlugin(frameworkDirectory);
|
|
241821
241821
|
break;
|
|
241822
241822
|
default:
|
|
241823
|
-
build_utils_1.debug(`No
|
|
241823
|
+
build_utils_1.debug(`No Web Vitals plugin injected for framework ${framework.slug}`);
|
|
241824
241824
|
break;
|
|
241825
241825
|
}
|
|
241826
241826
|
}
|
|
@@ -242922,10 +242922,10 @@ const _shared_1 = __webpack_require__(54);
|
|
|
242922
242922
|
// https://github.com/nuxt-modules/web-vitals
|
|
242923
242923
|
const ANALYTICS_PLUGIN_PACKAGE = '@nuxtjs/web-vitals';
|
|
242924
242924
|
async function injectVercelAnalyticsPlugin(dir) {
|
|
242925
|
-
// First update the `.nuxtrc` file to inject the
|
|
242925
|
+
// First update the `.nuxtrc` file to inject the Speed Insights (formerly Analytics) plugin.
|
|
242926
242926
|
// See: https://gist.github.com/pi0/23b5253ac19b4ed5a70add3b971545c9
|
|
242927
242927
|
const nuxtrcPath = path_1.join(dir, '.nuxtrc');
|
|
242928
|
-
console.log(`Injecting Nuxt.js
|
|
242928
|
+
console.log(`Injecting Nuxt.js Speed Insights plugin "${ANALYTICS_PLUGIN_PACKAGE}" to \`${nuxtrcPath}\``);
|
|
242929
242929
|
rc9_1.update({
|
|
242930
242930
|
'modules[]': ANALYTICS_PLUGIN_PACKAGE,
|
|
242931
242931
|
}, {
|
package/dist/utils/nuxt.js
CHANGED
|
@@ -7,10 +7,10 @@ const _shared_1 = require("./_shared");
|
|
|
7
7
|
// https://github.com/nuxt-modules/web-vitals
|
|
8
8
|
const ANALYTICS_PLUGIN_PACKAGE = '@nuxtjs/web-vitals';
|
|
9
9
|
async function injectVercelAnalyticsPlugin(dir) {
|
|
10
|
-
// First update the `.nuxtrc` file to inject the
|
|
10
|
+
// First update the `.nuxtrc` file to inject the Speed Insights (formerly Analytics) plugin.
|
|
11
11
|
// See: https://gist.github.com/pi0/23b5253ac19b4ed5a70add3b971545c9
|
|
12
12
|
const nuxtrcPath = path_1.join(dir, '.nuxtrc');
|
|
13
|
-
console.log(`Injecting Nuxt.js
|
|
13
|
+
console.log(`Injecting Nuxt.js Speed Insights plugin "${ANALYTICS_PLUGIN_PACKAGE}" to \`${nuxtrcPath}\``);
|
|
14
14
|
rc9_1.update({
|
|
15
15
|
'modules[]': ANALYTICS_PLUGIN_PACKAGE,
|
|
16
16
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.25",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"test-e2e": "pnpm test test/integration-*.test.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@vercel/gatsby-plugin-vercel-analytics": "1.0.
|
|
23
|
-
"@vercel/gatsby-plugin-vercel-builder": "1.2.
|
|
22
|
+
"@vercel/gatsby-plugin-vercel-analytics": "1.0.10",
|
|
23
|
+
"@vercel/gatsby-plugin-vercel-builder": "1.2.10"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"ts-morph": "12.0.0",
|
|
51
51
|
"typescript": "4.3.4"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7082da84511740ea0304b5f93b0073bbb3f3a9ed"
|
|
54
54
|
}
|