Skip to content

Commit 39b9628

Browse files
franciscocpgHyperBrain
authored andcommitted
- Upgrade deps (#227)
* - Upgrade deps - Improve webpack.config to import ts files without adding extension * Using default extensions plus ts extensions * Using webpack v3 defaults
1 parent fe45384 commit 39b9628

File tree

3 files changed

+313
-367
lines changed

3 files changed

+313
-367
lines changed

examples/typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"license": "MIT",
1111
"devDependencies": {
1212
"serverless-webpack": "file:../../",
13-
"ts-loader": "^2.3.1",
14-
"typescript": "^2.4.2",
15-
"webpack": "^3.3.0"
13+
"ts-loader": "^2.3.7",
14+
"typescript": "^2.5.2",
15+
"webpack": "^3.6.0"
1616
}
1717
}

examples/typescript/webpack.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
var path = require('path');
1+
const path = require('path');
22
const slsw = require('serverless-webpack');
33

44
module.exports = {
55
entry: slsw.lib.entries,
6+
resolve: {
7+
extensions: [
8+
'.js',
9+
'.json',
10+
'.ts',
11+
'.tsx'
12+
]
13+
},
614
output: {
715
libraryTarget: 'commonjs',
816
path: path.join(__dirname, '.webpack'),

0 commit comments

Comments
 (0)