Skip to content

Commit 69270b8

Browse files
committed
fix: set react-native and browser metadata for shared-ini-file-loader
1 parent 0977f02 commit 69270b8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/shared-ini-file-loader/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
"main": "./dist-cjs/index.js",
3535
"module": "./dist-es/index.js",
3636
"types": "./dist-types/index.d.ts",
37+
"browser": {
38+
"./dist-es/getSSOTokenFromFile": false,
39+
"./dist-es/slurpFile": false
40+
},
41+
"react-native": {
42+
"./dist-cjs/getSSOTokenFromFile": false,
43+
"./dist-cjs/slurpFile": false,
44+
"./dist-es/getSSOTokenFromFile": false,
45+
"./dist-es/slurpFile": false
46+
},
3747
"engines": {
3848
"node": ">=14.0.0"
3949
},

scripts/compilation/Inliner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = class Inliner {
158158
outfile: this.outfile,
159159
keepNames: true,
160160
packages: "external",
161-
external: [...this.variantExternalsForEsBuild],
161+
external: ["@smithy/*", "@aws-sdk/*", "node_modules/*", ...this.variantExternalsForEsBuild],
162162
});
163163
return this;
164164
}

0 commit comments

Comments
 (0)