Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
bug(warnings): Extraneous warnings from react-apollo removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
drhoden committed Feb 27, 2018
1 parent 1d7f025 commit 990f19c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/loader/sourcemap.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as webpack from 'webpack'

/**
*
* @param loaderPath
*/
export const sourcemapLoader = (loaderPath?: RegExp | undefined): webpack.Rule => {
const test = loaderPath || /\.js$/
export const sourcemapLoader = (loaderPath?: RegExp | undefined): any => {
const test = loaderPath || /\.tsx?$/
return {
enforce: 'pre',
test,
use: ['source-map-loader']
loader: 'source-map-loader',
exclude: [/node_modules/, /build/, /__tests__/, /__test__/]
}
}

0 comments on commit 990f19c

Please sign in to comment.