Skip to content

Commit 2327499

Browse files
authored
one-ini-bg.wasm is missing from the webpacked extension (#12369)
1 parent 9061b79 commit 2327499

File tree

3 files changed

+105
-5
lines changed

3 files changed

+105
-5
lines changed

Extension/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6500,6 +6500,7 @@
65006500
"@vscode/test-electron": "^2.3.10",
65016501
"async-child-process": "^1.1.1",
65026502
"await-notify": "^1.0.1",
6503+
"copy-webpack-plugin": "^12.0.2",
65036504
"eslint": "^8.45.0",
65046505
"eslint-plugin-header": "^3.1.1",
65056506
"eslint-plugin-import": "^2.29.1",

Extension/webpack.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'use strict';
99

1010
const path = require('path');
11+
const copyPlugin = require('copy-webpack-plugin');
1112

1213
/**@type {import('webpack').Configuration}*/
1314
const config = {
@@ -31,6 +32,16 @@ const config = {
3132
extensions: ['.js', '.ts',],
3233
mainFields: ['main', 'module'],
3334
},
35+
plugins: [
36+
new copyPlugin({
37+
patterns: [
38+
{
39+
from: path.resolve(__dirname, 'node_modules', "@one-ini", "wasm", "one_ini_bg.wasm"),
40+
to: path.resolve(__dirname, 'dist', 'src')
41+
}
42+
]
43+
})
44+
],
3445
module: {
3546
rules: [{
3647
test: /\.ts$/,

Extension/yarn.lock

Lines changed: 93 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,11 @@
370370
resolved "https://registry.yarnpkg.com/@one-ini/wasm/-/wasm-0.1.1.tgz#6013659736c9dbfccc96e8a9c2b3de317df39323"
371371
integrity sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==
372372

373+
"@sindresorhus/merge-streams@^2.1.0":
374+
version "2.3.0"
375+
resolved "https://registry.yarnpkg.com/@sindresorhus/merge-streams/-/merge-streams-2.3.0.tgz#719df7fb41766bc143369eaa0dd56d8dc87c9958"
376+
integrity sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==
377+
373378
"@tsconfig/node10@^1.0.7":
374379
version "1.0.11"
375380
resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2"
@@ -419,7 +424,7 @@
419424
"@types/minimatch" "*"
420425
"@types/node" "*"
421426

422-
"@types/json-schema@*", "@types/json-schema@^7.0.12", "@types/json-schema@^7.0.8":
427+
"@types/json-schema@*", "@types/json-schema@^7.0.12", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
423428
version "7.0.15"
424429
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841"
425430
integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==
@@ -814,11 +819,25 @@ agent-base@^7.0.2, agent-base@^7.1.0:
814819
dependencies:
815820
debug "^4.3.4"
816821

822+
ajv-formats@^2.1.1:
823+
version "2.1.1"
824+
resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520"
825+
integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==
826+
dependencies:
827+
ajv "^8.0.0"
828+
817829
ajv-keywords@^3.5.2:
818830
version "3.5.2"
819831
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d"
820832
integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==
821833

834+
ajv-keywords@^5.1.0:
835+
version "5.1.0"
836+
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16"
837+
integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==
838+
dependencies:
839+
fast-deep-equal "^3.1.3"
840+
822841
ajv@^6.12.4, ajv@^6.12.5:
823842
version "6.12.6"
824843
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
@@ -829,6 +848,16 @@ ajv@^6.12.4, ajv@^6.12.5:
829848
json-schema-traverse "^0.4.1"
830849
uri-js "^4.2.2"
831850

851+
ajv@^8.0.0, ajv@^8.9.0:
852+
version "8.16.0"
853+
resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.16.0.tgz#22e2a92b94f005f7e0f9c9d39652ef0b8f6f0cb4"
854+
integrity sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==
855+
dependencies:
856+
fast-deep-equal "^3.1.3"
857+
json-schema-traverse "^1.0.0"
858+
require-from-string "^2.0.2"
859+
uri-js "^4.4.1"
860+
832861
ansi-colors@4.1.1:
833862
version "4.1.1"
834863
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348"
@@ -1402,6 +1431,18 @@ copy-props@^4.0.0:
14021431
each-props "^3.0.0"
14031432
is-plain-object "^5.0.0"
14041433

1434+
copy-webpack-plugin@^12.0.2:
1435+
version "12.0.2"
1436+
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-12.0.2.tgz#935e57b8e6183c82f95bd937df658a59f6a2da28"
1437+
integrity sha512-SNwdBeHyII+rWvee/bTnAYyO8vfVdcSTud4EIb6jcZ8inLeWucJE0DnxXQBjlQ5zlteuuvooGQy3LIyGxhvlOA==
1438+
dependencies:
1439+
fast-glob "^3.3.2"
1440+
glob-parent "^6.0.1"
1441+
globby "^14.0.0"
1442+
normalize-path "^3.0.0"
1443+
schema-utils "^4.2.0"
1444+
serialize-javascript "^6.0.2"
1445+
14051446
core-js@^2.4.0:
14061447
version "2.6.12"
14071448
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec"
@@ -2082,7 +2123,7 @@ fast-fifo@^1.3.2:
20822123
resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c"
20832124
integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==
20842125

2085-
fast-glob@^3.2.9:
2126+
fast-glob@^3.2.9, fast-glob@^3.3.2:
20862127
version "3.3.2"
20872128
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
20882129
integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==
@@ -2330,7 +2371,7 @@ glob-parent@^3.1.0, glob-parent@^5.1.2, glob-parent@~5.1.2:
23302371
dependencies:
23312372
is-glob "^4.0.1"
23322373

2333-
glob-parent@^6.0.2:
2374+
glob-parent@^6.0.1, glob-parent@^6.0.2:
23342375
version "6.0.2"
23352376
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
23362377
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
@@ -2450,6 +2491,18 @@ globby@^11.1.0:
24502491
merge2 "^1.4.1"
24512492
slash "^3.0.0"
24522493

2494+
globby@^14.0.0:
2495+
version "14.0.1"
2496+
resolved "https://registry.yarnpkg.com/globby/-/globby-14.0.1.tgz#a1b44841aa7f4c6d8af2bc39951109d77301959b"
2497+
integrity sha512-jOMLD2Z7MAhyG8aJpNOpmziMOP4rPLcc95oQPKXBazW82z+CEgPFBQvEpRUa1KeIMUJo4Wsm+q6uzO/Q/4BksQ==
2498+
dependencies:
2499+
"@sindresorhus/merge-streams" "^2.1.0"
2500+
fast-glob "^3.3.2"
2501+
ignore "^5.2.4"
2502+
path-type "^5.0.0"
2503+
slash "^5.1.0"
2504+
unicorn-magic "^0.1.0"
2505+
24532506
glogg@^2.2.0:
24542507
version "2.2.0"
24552508
resolved "https://registry.yarnpkg.com/glogg/-/glogg-2.2.0.tgz#956ceb855a05a2aa1fa668d748f2be8e7361c11c"
@@ -2995,6 +3048,11 @@ json-schema-traverse@^0.4.1:
29953048
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660"
29963049
integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==
29973050

3051+
json-schema-traverse@^1.0.0:
3052+
version "1.0.0"
3053+
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2"
3054+
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==
3055+
29983056
json-stable-stringify-without-jsonify@^1.0.1:
29993057
version "1.0.1"
30003058
resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
@@ -3626,6 +3684,11 @@ path-type@^4.0.0:
36263684
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
36273685
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
36283686

3687+
path-type@^5.0.0:
3688+
version "5.0.0"
3689+
resolved "https://registry.yarnpkg.com/path-type/-/path-type-5.0.0.tgz#14b01ed7aea7ddf9c7c3f46181d4d04f9c785bb8"
3690+
integrity sha512-5HviZNaZcfqP95rwpv+1HDgUamezbqdSYTyzjTvwtJSnIH+3vnbmWsItli8OFEndS984VT55M3jduxZbX351gg==
3691+
36293692
pause-stream@^0.0.11:
36303693
version "0.0.11"
36313694
resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445"
@@ -3843,6 +3906,11 @@ require-directory@^2.1.1:
38433906
resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
38443907
integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==
38453908

3909+
require-from-string@^2.0.2:
3910+
version "2.0.2"
3911+
resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909"
3912+
integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==
3913+
38463914
resolve-cwd@^3.0.0:
38473915
version "3.0.0"
38483916
resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d"
@@ -3966,6 +4034,16 @@ schema-utils@^3.1.1, schema-utils@^3.2.0:
39664034
ajv "^6.12.5"
39674035
ajv-keywords "^3.5.2"
39684036

4037+
schema-utils@^4.2.0:
4038+
version "4.2.0"
4039+
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.2.0.tgz#70d7c93e153a273a805801882ebd3bff20d89c8b"
4040+
integrity sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw==
4041+
dependencies:
4042+
"@types/json-schema" "^7.0.9"
4043+
ajv "^8.9.0"
4044+
ajv-formats "^2.1.1"
4045+
ajv-keywords "^5.1.0"
4046+
39694047
semver-greatest-satisfied-range@^2.0.0:
39704048
version "2.0.0"
39714049
resolved "https://registry.yarnpkg.com/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-2.0.0.tgz#4b62942a7a1ccbdb252e5329677c003bac546fe7"
@@ -3990,7 +4068,7 @@ serialize-javascript@6.0.0:
39904068
dependencies:
39914069
randombytes "^2.1.0"
39924070

3993-
serialize-javascript@^6.0.1:
4071+
serialize-javascript@^6.0.1, serialize-javascript@^6.0.2:
39944072
version "6.0.2"
39954073
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2"
39964074
integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==
@@ -4073,6 +4151,11 @@ slash@^3.0.0:
40734151
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
40744152
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
40754153

4154+
slash@^5.1.0:
4155+
version "5.1.0"
4156+
resolved "https://registry.yarnpkg.com/slash/-/slash-5.1.0.tgz#be3adddcdf09ac38eebe8dcdc7b1a57a75b095ce"
4157+
integrity sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==
4158+
40764159
source-map-js@^1.2.0:
40774160
version "1.2.0"
40784161
resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af"
@@ -4592,6 +4675,11 @@ undici-types@~5.26.4:
45924675
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
45934676
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
45944677

4678+
unicorn-magic@^0.1.0:
4679+
version "0.1.0"
4680+
resolved "https://registry.yarnpkg.com/unicorn-magic/-/unicorn-magic-0.1.0.tgz#1bb9a51c823aaf9d73a8bfcd3d1a23dde94b0ce4"
4681+
integrity sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==
4682+
45954683
unique-stream@^2.0.2:
45964684
version "2.3.1"
45974685
resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac"
@@ -4618,7 +4706,7 @@ update-browserslist-db@^1.0.16:
46184706
escalade "^3.1.2"
46194707
picocolors "^1.0.1"
46204708

4621-
uri-js@^4.2.2:
4709+
uri-js@^4.2.2, uri-js@^4.4.1:
46224710
version "4.4.1"
46234711
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
46244712
integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==

0 commit comments

Comments
 (0)