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

fix: resolve webpack import.meta warning in browser extension#1322

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
devlux76 wants to merge1 commit intohuggingface:main
base:main
Choose a base branch
Loading
fromdevlux76:feature-webpack-import-meta-fix

Conversation

devlux76
Copy link

  • Add parser configuration to disable import.meta parsing in webpack
  • Suppress critical dependency warnings from @huggingface/transformers
  • Add Node.js fallbacks for browser compatibility (fs, path, url)
  • Ensures clean build without warnings while maintaining ML functionality
  • Extension now builds successfully for both development and production

Resolves webpack 5 compatibility issue with Transformers.js library when bundling for browser extension environment.

- Add parser configuration to disable import.meta parsing in webpack- Suppress critical dependency warnings from @huggingface/transformers- Add Node.js fallbacks for browser compatibility (fs, path, url)- Ensures clean build without warnings while maintaining ML functionality- Extension now builds successfully for both development and productionResolves webpack 5 compatibility issue with Transformers.js librarywhen bundling for browser extension environment.
@xenova
Copy link
Collaborator

Hi there 👋 thanks for the PR!

We're in the process of moving our examples tohttps://github.com/huggingface/transformers.js-examples/tree/main/browser-extension; can you check if this is still an issue in that example? Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@devlux76@xenova

[8]ページ先頭

©2009-2025 Movatter.jp