forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build system: fix standalone debugging & inclusion of node dependenci…
…es (prebid#11375)
- Loading branch information
1 parent
f9b28e6
commit 8f2d86d
Showing
3 changed files
with
77 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
var path = require('path'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
devtool: 'source-map', | ||
resolve: { | ||
modules: [ | ||
path.resolve('.'), | ||
'node_modules' | ||
], | ||
}, | ||
entry: { | ||
'debugging-standalone': { | ||
import: './modules/debugging/standalone.js', | ||
} | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
exclude: path.resolve('./node_modules'), // required to prevent loader from choking non-Prebid.js node_modules | ||
use: [ | ||
{ | ||
loader: 'babel-loader' | ||
} | ||
] | ||
}, | ||
] | ||
} | ||
}; |