Skip to content

Commit ca0eda7

Browse files
committed
fix: exclude nsfw from the snapshot
1 parent daf620a commit ca0eda7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

script/lib/generate-startup-snapshot.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,15 @@ module.exports = function(packagedAppPath) {
261261
'lib',
262262
'index.js'
263263
) ||
264+
requiredModuleRelativePath ===
265+
path.join(
266+
'..',
267+
'node_modules',
268+
'nsfw',
269+
'js',
270+
'src',
271+
'index.js'
272+
) ||
264273
// The startup-time script is used by both the renderer and the main process and having it in the
265274
// snapshot causes issues.
266275
requiredModuleRelativePath === path.join('..', 'src', 'startup-time.js')

0 commit comments

Comments
 (0)