Skip to content

Commit

Permalink
Fix webpack bundling issue with ts-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-das-in committed Feb 10, 2025
1 parent 855aada commit 0d74de2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/browser-destinations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"serve": "^12.0.1",
"size-limit": "^11.0.1",
"terser-webpack-plugin": "^5.1.1",
"ts-loader": "^9.2.6",
"ts-loader": "^9.5.2",
"webpack": "^5.82.0",
"webpack-bundle-analyzer": "^4.4.1",
"webpack-cli": "^5.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/mapping-kit/__tests__/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ describe('validation', () => {
} catch (error) {
hasError = true
if (typeof fixture.expectError === 'string') {
expect(error.message).toMatch(fixture.expectError)
expect((error as Error).message).toMatch(fixture.expectError)
} else {
for (const err of error) {
for (const err of error as Error[]) {
expect(fixture.expectError).toContain(err.message)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export default class Salesforce {
private removeInvalidChars = (value: string) => value.replace(/[^a-zA-Z0-9_]/g, '')

// Pre-formats trait values based on datatypes for correct SOQL syntax
private typecast = (value: any) => {
private typecast = (value: unknown) => {
switch (typeof value) {
case 'boolean':
return value
Expand Down
14 changes: 10 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15593,6 +15593,11 @@ source-map@^0.7.3, source-map@~0.7.2:
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==

source-map@^0.7.4:
version "0.7.4"
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656"
integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==

spark-md5@^3.0.1:
version "3.0.2"
resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc"
Expand Down Expand Up @@ -16424,15 +16429,16 @@ ts-jest@^27.0.7:
semver "7.x"
yargs-parser "20.x"

ts-loader@^9.2.6:
version "9.2.6"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.2.6.tgz#9937c4dd0a1e3dbbb5e433f8102a6601c6615d74"
integrity sha512-QMTC4UFzHmu9wU2VHZEmWWE9cUajjfcdcws+Gh7FhiO+Dy0RnR1bNz0YCHqhI0yRowCE9arVnNxYHqELOy9Hjw==
ts-loader@^9.5.2:
version "9.5.2"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020"
integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw==
dependencies:
chalk "^4.1.0"
enhanced-resolve "^5.0.0"
micromatch "^4.0.0"
semver "^7.3.4"
source-map "^0.7.4"

ts-node@^9.1.1:
version "9.1.1"
Expand Down

0 comments on commit 0d74de2

Please sign in to comment.