Skip to content

Commit

Permalink
fix jaredpalmer#124, banner attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
JacopKane committed Mar 23, 2018
1 parent 4b57bd5 commit c824ae3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/backpack-core/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,7 @@ module.exports = (options) => {
new webpack.BannerPlugin({
raw: true,
entryOnly: false,
banner: `require('${
// Is source-map-support installed as project dependency, or linked?
( require.resolve('source-map-support').indexOf(process.cwd()) === 0 )
// If it's resolvable from the project root, it's a project dependency.
? 'source-map-support/register'
// It's not under the project, it's linked via lerna.
: require.resolve('source-map-support/register')
}')`
banner: 'require(\'source-map-support/register\')'
}),
// The FriendlyErrorsWebpackPlugin (when combined with source-maps)
// gives Backpack its human-readable error messages.
Expand Down

0 comments on commit c824ae3

Please sign in to comment.