We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ceb28 commit c362719Copy full SHA for c362719
webpack.config.js
@@ -48,7 +48,7 @@ class PostBuildPlugin {
48
// - https://github.com/huggingface/transformers.js/issues/980
49
// - https://github.com/huggingface/transformers.js/issues/1021
50
// - https://github.com/huggingface/transformers.js/issues/1026
51
- new RegExp('new URL\\(["\'].\\\/["\'],\\s*import\\.meta\\.url\\)', 'gm'),
+ new RegExp('new URL\\(["\']\\.\\\/["\'],\\s*import\\.meta\\.url\\)', 'gm'),
52
"new URL(import.meta.url)",
53
);
54
fs.writeFileSync(filePath, content, 'utf8');
0 commit comments