@salesforce/pwa-kit-dev 3.12.0 → 3.13.0-nightly-20250909080205
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/configs/webpack/config.js +18 -0
- package/package.json +4 -4
|
@@ -318,6 +318,15 @@ const client = entryPointExists(['app', 'main']) && baseConfig('web').extend(wit
|
|
|
318
318
|
entry: {
|
|
319
319
|
main: getAppEntryPoint()
|
|
320
320
|
},
|
|
321
|
+
// Exclude OpenTelemetry packages from client bundle (server-only)
|
|
322
|
+
externals: [{
|
|
323
|
+
'@opentelemetry/api': 'commonjs @opentelemetry/api',
|
|
324
|
+
'@opentelemetry/core': 'commonjs @opentelemetry/core',
|
|
325
|
+
'@opentelemetry/sdk-trace-node': 'commonjs @opentelemetry/sdk-trace-node',
|
|
326
|
+
'@opentelemetry/sdk-trace-base': 'commonjs @opentelemetry/sdk-trace-base',
|
|
327
|
+
'@opentelemetry/propagator-b3': 'commonjs @opentelemetry/propagator-b3',
|
|
328
|
+
'@opentelemetry/resources': 'commonjs @opentelemetry/resources'
|
|
329
|
+
}],
|
|
321
330
|
plugins: [...config.plugins, new _webpackPlugin.default({
|
|
322
331
|
writeToDisk: true
|
|
323
332
|
}), analyzeBundle && getBundleAnalyzerPlugin(_configNames.CLIENT)].filter(Boolean),
|
|
@@ -336,6 +345,15 @@ const clientOptional = baseConfig('web').extend(config => {
|
|
|
336
345
|
return _objectSpread(_objectSpread({}, config), {}, {
|
|
337
346
|
name: _configNames.CLIENT_OPTIONAL,
|
|
338
347
|
entry: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, optional('loader', (0, _path.resolve)(projectDir, EXT_OVERRIDES_DIR, 'app', 'loader.js'))), optional('worker', (0, _path.resolve)(projectDir, 'worker', 'main.js'))), optional('core-polyfill', (0, _path.resolve)(projectDir, 'node_modules', 'core-js'))), optional('fetch-polyfill', (0, _path.resolve)(projectDir, 'node_modules', 'whatwg-fetch'))),
|
|
348
|
+
// Exclude OpenTelemetry packages from client bundle (server-only)
|
|
349
|
+
externals: [{
|
|
350
|
+
'@opentelemetry/api': 'commonjs @opentelemetry/api',
|
|
351
|
+
'@opentelemetry/core': 'commonjs @opentelemetry/core',
|
|
352
|
+
'@opentelemetry/sdk-trace-node': 'commonjs @opentelemetry/sdk-trace-node',
|
|
353
|
+
'@opentelemetry/sdk-trace-base': 'commonjs @opentelemetry/sdk-trace-base',
|
|
354
|
+
'@opentelemetry/propagator-b3': 'commonjs @opentelemetry/propagator-b3',
|
|
355
|
+
'@opentelemetry/resources': 'commonjs @opentelemetry/resources'
|
|
356
|
+
}],
|
|
339
357
|
// use source map to make debugging easier
|
|
340
358
|
devtool: mode === development || process.env.PWA_KIT_SOURCE_MAP === 'true' ? 'source-map' : false,
|
|
341
359
|
plugins: [...config.plugins, analyzeBundle && getBundleAnalyzerPlugin(_configNames.CLIENT_OPTIONAL)].filter(Boolean)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/pwa-kit-dev",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0-nightly-20250909080205",
|
|
4
4
|
"description": "Build tools for pwa-kit",
|
|
5
5
|
"homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/pwa-kit-dev#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@loadable/server": "^5.15.3",
|
|
59
59
|
"@loadable/webpack-plugin": "^5.15.2",
|
|
60
60
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
61
|
-
"@salesforce/pwa-kit-runtime": "3.
|
|
61
|
+
"@salesforce/pwa-kit-runtime": "3.13.0-nightly-20250909080205",
|
|
62
62
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
63
63
|
"@typescript-eslint/parser": "^5.57.0",
|
|
64
64
|
"archiver": "1.3.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"@types/node": "~16.0.3",
|
|
122
122
|
"@types/node-fetch": "~2.6.3",
|
|
123
123
|
"@types/validator": "~13.7.14",
|
|
124
|
-
"internal-lib-build": "3.
|
|
124
|
+
"internal-lib-build": "3.13.0-nightly-20250909080205",
|
|
125
125
|
"nock": "^13.3.0",
|
|
126
126
|
"nodemon": "^2.0.22",
|
|
127
127
|
"superagent": "^6.1.0",
|
|
@@ -147,5 +147,5 @@
|
|
|
147
147
|
"publishConfig": {
|
|
148
148
|
"directory": "dist"
|
|
149
149
|
},
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "6f1395801a36b95520095770165cb0124a1928fe"
|
|
151
151
|
}
|