Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
[fixed] webpack noParse in jsWebCompile for any file a path for which…
Browse files Browse the repository at this point in the history
… contains the word "browser"
  • Loading branch information
thealjey committed Oct 29, 2015
1 parent caca972 commit 129b423
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/jsWebCompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var config = {
entry: '',
output: { path: '', filename: '' },
module: {
noParse: /browser/,
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
Expand Down
1 change: 1 addition & 0 deletions lib/jsWebCompile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const config = {
entry: '',
output: {path: '', filename: ''},
module: {
noParse: /browser/,
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
Expand Down
2 changes: 2 additions & 0 deletions spec/jsWebCompileSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('jsWebCompile', function () {
entry: '/path/to/the/input/file.js',
output: {path: '/path/to/the/output', filename: 'file.js'},
module: {
noParse: /browser/,
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
Expand Down Expand Up @@ -56,6 +57,7 @@ describe('jsWebCompile', function () {
entry: '/path/to/the/input/file.js',
output: {path: '/path/to/the/output', filename: 'file.js'},
module: {
noParse: /browser/,
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
Expand Down

0 comments on commit 129b423

Please sign in to comment.