Skip to content

Commit

Permalink
fix: ensure background code gets included in bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Sep 23, 2020
1 parent a784e8c commit 94aa7e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const files = [
'!static/*.map',
// Include everything in src/ apart from src/renderer
'src/main/**/*',
'src/background/**/*',
'src/background/**/**/*.{js,html}',
'src/*.js',
// but also include src/renderer/index-preload.js since this is not included
// in the renderer bundle
Expand Down Expand Up @@ -117,7 +117,8 @@ module.exports = async () => {
// Get required files for main and background process
const { fileList } = await nodeFileTrace([
'./index.js',
'./src/background/index.js'
'./src/background/mapeo-core/index.js',
'./src/background/map-printer/index.js'
])

// List of all modules we definitely want to include
Expand Down

0 comments on commit 94aa7e5

Please sign in to comment.