Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle external libraries #42

Merged
merged 2 commits into from
Jan 20, 2025
Merged

Bundle external libraries #42

merged 2 commits into from
Jan 20, 2025

Conversation

HashidaTKS
Copy link
Contributor

Bundle external libraries and use them instead of CDN.

Test

  • Confirm that a build successes.
  • Confirm that the confirmation dialog is displayed correctly.
  • Confirm that the count-down dialog is displayed correctly.

@HashidaTKS HashidaTKS requested a review from piroor January 20, 2025 01:58
@@ -9,7 +9,8 @@
"version": "0.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一見関係なさそうな差分もあるが、これは

npm install --save @microsoft/office-js
npm install --save @fluentui/web-components

で発生した差分なので、そのままコミットしている。

},
{
from: "node_modules/@fluentui/web-components/dist/web-components.min.js",
to: "lib/fluentui/web-components/web-components.min.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_modules/@fluentui/web-componentsにライセンスファイルが含まれていなかったのでコピーしていない。

@@ -79,6 +79,26 @@ module.exports = async (env, options) => {
}
},
},
{
from: "node_modules/@microsoft/office-js/dist",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dist配下の全てをコピーしているので、すべての言語のモジュールをコピーしている。
それなりのサイズがあるので(80MB)、サポートする言語のみに限定しても良いかもしれない。

@HashidaTKS
Copy link
Contributor Author

@piroor

レビューをお願いします。

@piroor piroor merged commit 43d2b60 into main Jan 20, 2025
1 check passed
@piroor
Copy link
Member

piroor commented Jan 20, 2025

特に問題はなさそうに思いますのでマージします。ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants