Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-codar committed Sep 25, 2017
1 parent 38e39a9 commit d091e0c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"target": "ES5",
"module": "es2015",
"moduleResolution": "node",
"strict": true,
"outDir": "dist",
"declaration": true
}
}
"compilerOptions": {
"target": "es5",
"lib": ["es5", "es2015", "dom"],
"module": "commonjs",
"outDir": "dist",
"sourceMap": true,
"declaration": true
}
}
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

const path = require('path');
const webpack = require('webpack');
var nodeExternals = require('webpack-node-externals');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;

Expand All @@ -18,7 +19,8 @@ const webpackConfig = {
's-js': path.resolve(path.join(__dirname, 'node_modules', 's-js')) //https://github.com/webpack/webpack/issues/2134#issuecomment-192579511
}
},
externals: ['s-js', 'surplus'],
target: isProd ? 'node' : undefined,
externals: isProd ? nodeExternals() : undefined,
devtool: isProd ? undefined : 'sourcemap',
module: {
rules: [
Expand Down

0 comments on commit d091e0c

Please sign in to comment.