Skip to content

Commit

Permalink
- Upgrade deps (#227)
Browse files Browse the repository at this point in the history
* - Upgrade deps
- Improve webpack.config to import ts files without adding extension

* Using default extensions plus ts extensions

* Using webpack v3 defaults
  • Loading branch information
franciscocpg authored and HyperBrain committed Sep 18, 2017
1 parent fe45384 commit 39b9628
Show file tree
Hide file tree
Showing 3 changed files with 313 additions and 367 deletions.
6 changes: 3 additions & 3 deletions examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"license": "MIT",
"devDependencies": {
"serverless-webpack": "file:../../",
"ts-loader": "^2.3.1",
"typescript": "^2.4.2",
"webpack": "^3.3.0"
"ts-loader": "^2.3.7",
"typescript": "^2.5.2",
"webpack": "^3.6.0"
}
}
10 changes: 9 additions & 1 deletion examples/typescript/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
var path = require('path');
const path = require('path');
const slsw = require('serverless-webpack');

module.exports = {
entry: slsw.lib.entries,
resolve: {
extensions: [
'.js',
'.json',
'.ts',
'.tsx'
]
},
output: {
libraryTarget: 'commonjs',
path: path.join(__dirname, '.webpack'),
Expand Down
Loading

0 comments on commit 39b9628

Please # to comment.