@sleeperhq/mini-core 4.0.3 → 4.0.4-a
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/mini_packages.json +1 -1
- package/package.json +2 -1
- package/rspack.config.js +3 -2
- package/webpack.config.js +3 -3
package/mini_packages.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@react-navigation/native": "6.1.17",
|
|
20
20
|
"@react-navigation/stack": "6.4.0",
|
|
21
21
|
"@shopify/flash-list": "1.7.6",
|
|
22
|
-
"@sleeperhq/mini-core": "4.0.
|
|
22
|
+
"@sleeperhq/mini-core": "4.0.4-a",
|
|
23
23
|
"amazon-cognito-identity-js": "6.3.2",
|
|
24
24
|
"crypto-js": "3.3.0",
|
|
25
25
|
"decimal.js-light": "2.5.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleeperhq/mini-core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4-a",
|
|
4
4
|
"description": "Core library frameworks for developing Sleeper Mini Apps.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@babel/runtime": "7.26.0",
|
|
39
39
|
"@callstack/repack": "blitzstudios/repack.git#callstack-repack-v5.0.9-gitpkg",
|
|
40
40
|
"@callstack/repack-plugin-reanimated": "5.1.1",
|
|
41
|
+
"@module-federation/enhanced": "0.14.3",
|
|
41
42
|
"@react-native-community/cli": "15.0.1",
|
|
42
43
|
"@react-native-community/cli-platform-android": "15.0.1",
|
|
43
44
|
"@react-native-community/cli-platform-apple": "15.0.1",
|
package/rspack.config.js
CHANGED
|
@@ -237,7 +237,7 @@ module.exports = env => {
|
|
|
237
237
|
},
|
|
238
238
|
extraChunks: [
|
|
239
239
|
{
|
|
240
|
-
include:
|
|
240
|
+
include: /.*/,
|
|
241
241
|
type: 'remote',
|
|
242
242
|
outputPath: path.join(__dirname, '..', '..', '..', 'dist', config.name, platform),
|
|
243
243
|
},
|
|
@@ -245,8 +245,9 @@ module.exports = env => {
|
|
|
245
245
|
listenerIP: config.remoteIP,
|
|
246
246
|
}),
|
|
247
247
|
new ReanimatedPlugin(),
|
|
248
|
-
new Repack.plugins.
|
|
248
|
+
new Repack.plugins.ModuleFederationPluginV2({
|
|
249
249
|
name: config.name,
|
|
250
|
+
filename: `${config.name}.container.bundle`,
|
|
250
251
|
exposes: {
|
|
251
252
|
app: sampleClassPathLocal,
|
|
252
253
|
},
|
package/webpack.config.js
CHANGED
|
@@ -119,7 +119,6 @@ module.exports = env => {
|
|
|
119
119
|
? 'index.android.bundle'
|
|
120
120
|
: 'index.ios.bundle',
|
|
121
121
|
chunkFilename: '[name].chunk.bundle',
|
|
122
|
-
publicPath: Repack.getPublicPath({platform, devServer}),
|
|
123
122
|
uniqueName: config.name,
|
|
124
123
|
},
|
|
125
124
|
/**
|
|
@@ -289,7 +288,7 @@ module.exports = env => {
|
|
|
289
288
|
},
|
|
290
289
|
extraChunks: [
|
|
291
290
|
{
|
|
292
|
-
include:
|
|
291
|
+
include: /.*/,
|
|
293
292
|
type: 'remote',
|
|
294
293
|
outputPath: path.join(__dirname, '..', '..', '..', 'dist', config.name, platform),
|
|
295
294
|
},
|
|
@@ -297,8 +296,9 @@ module.exports = env => {
|
|
|
297
296
|
listenerIP: config.remoteIP,
|
|
298
297
|
}),
|
|
299
298
|
|
|
300
|
-
new Repack.plugins.
|
|
299
|
+
new Repack.plugins.ModuleFederationPluginV2({
|
|
301
300
|
name: config.name,
|
|
301
|
+
filename: `${config.name}.container.bundle`,
|
|
302
302
|
exposes: {
|
|
303
303
|
app: sampleClassPathLocal,
|
|
304
304
|
},
|