Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e52e2a

Browse files
committed
Add a vendor chunk to a localization test project.
1 parent60b314d commit6e52e2a

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

‎build-tests/localization-plugin-test-02/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"webpack-bundle-analyzer":"~3.6.0",
1919
"webpack-cli":"~3.3.2",
2020
"webpack-dev-server":"~3.9.0",
21-
"html-webpack-plugin":"~3.2.0"
21+
"html-webpack-plugin":"~3.2.0",
22+
"@types/lodash":"4.14.116",
23+
"lodash":"~4.17.15"
2224
}
2325
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import*aslodashfrom'lodash';
2+
13
import*asstringsfrom'./strings2.loc.json';
24

35
exportclassChunkWithStringsClass{
46
publicdoStuff():void{
5-
console.log(strings.string1);
7+
console.log(lodash.escape(strings.string1));
68
}
79
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import*aslodashfrom'lodash';
2+
13
exportclassChunkWithoutStringsClass{
24
publicdoStuff():void{
3-
console.log('STATIC STRING');
5+
console.log(lodash.escape('STATIC STRING'));
46
}
57
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// DO NOT ADD COMMENTS IN THIS FILE. They will be lost when the Rush tool resaves it.
22
{
33
"$schema":"https://developer.microsoft.com/json-schemas/rush/v5/approved-packages.schema.json",
4-
"packages": [
5-
]
4+
"packages": []
65
}

‎common/config/rush/nonbrowser-approved-packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
},
453453
{
454454
"name":"lodash",
455-
"allowedCategories": ["libraries" ]
455+
"allowedCategories": ["libraries","tests" ]
456456
},
457457
{
458458
"name":"lodash.merge",

‎common/config/rush/pnpm-lock.yaml

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp