Skip to content

Commit

Permalink
integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Balestra committed Jan 12, 2017
1 parent 57911f3 commit 2af7991
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 397 deletions.
16 changes: 8 additions & 8 deletions src/cli/domain/package-server-script/bundle/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function webpackConfigGenerator(params){
loaders: [
'falafel-loader',
'babel-loader?' + JSON.stringify({
cacheDirectory: false,
cacheDirectory: true,
'presets': [
['env', {
'targets': {
Expand All @@ -43,13 +43,13 @@ module.exports = function webpackConfigGenerator(params){
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
// new webpack.optimize.UglifyJsPlugin({
// compressor: {
// warnings: false,
// screw_ie8: true
// },
// sourceMap: false
// }),
new webpack.optimize.UglifyJsPlugin({
compressor: {
warnings: false,
screw_ie8: true
},
sourceMap: false
}),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function wrapLoops(node){
}

if(loopKeywords.indexOf(node.parent.type) > -1 && node.type === 'BlockStatement'){
node.update('{ if(__ITER <=0){ throw new Error("loop exceeded maximum '
node.update('{ if(__ITER <=0){ throw new Error("Loop exceeded maximum '
+ 'allowed iterations"); } '
+ node.source().substr(1).slice(0, -1)
+ ' __ITER--; }'
Expand Down
Loading

0 comments on commit 2af7991

Please sign in to comment.