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

Fix long node modules paths in the dist build #1725

Merged
merged 1 commit into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix long node modules paths in the dist build
smalluban committed Jul 8, 2024
commit d87ed15f15f27287da2c7725cb3afbb11cc383f1
18 changes: 13 additions & 5 deletions extension-manifest-v3/scripts/build.js
Original file line number Diff line number Diff line change
@@ -62,11 +62,6 @@ if (argv.target.startsWith('safari')) {
argv.target = 'safari';
}

// Add background/safari path to assets for Safari target
if (argv.target === 'safari') {
options.assets.push('background/safari');
}

// Download adblocker engines
if (argv.staging) {
execSync('npm run download-engines -- --staging', { stdio: 'inherit' });
@@ -285,6 +280,19 @@ const buildPromise = build({
minifyInternalExports: false,
entryFileNames: '[name].js',
assetFileNames: 'assets/[name].[ext]',
sanitizeFileName: (name) => {
name = name
.replace(/[\0?*]+/g, '_') // eslint-disable-line no-control-regex
.replace('node_modules', 'npm')
.replace('_virtual', 'virtual');

const path = name.replace(resolve(pwd, '..'), '');
if (path.length > 100) {
throw new Error(`Filename too long: ${path} (${path.length})`);
}

return name;
},
},
},
},
26 changes: 0 additions & 26 deletions patches/rollup+3.29.4.patch

This file was deleted.

15 changes: 0 additions & 15 deletions patches/web-ext+7.11.0.patch

This file was deleted.