Skip to content
This repository was archived by the owner on Jul 20, 2024. It is now read-only.

Commit 2a0151f

Browse files
author
Steve Higgs
committed
account for webpack 4 differences
1 parent 769e594 commit 2a0151f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ given a `tsconfig.json` in the project root folder that contains:
5050
{
5151
"compilerOptions": {
5252
"target": "es5",
53-
"module": "es6",
53+
"module": "commonjs",
5454
"sourceMap": true
5555
}
5656
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-webpack-typescript-pipeline",
3-
"version": "10.0.0",
3+
"version": "10.0.3",
44
"description": "easy transpiling and bundling of typescript back to es5",
55
"main": "index.js",
66
"engines": {

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = (options) => {
6969
filename: '[name].js'
7070
},
7171
module: {
72-
loaders: [
72+
rules: [
7373
{
7474
test: /\.ts(x?)$/,
7575
exclude: /node_modules/,

webpack.config.release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33
const commonConfig = require('./webpack.config');
44

55
module.exports = (options) => {
6-
const releaseConfig = Object.create(commonConfig(options));
6+
const releaseConfig = Object.assign({}, commonConfig(options));
77
releaseConfig.devtool = 'sourcemap';
88
releaseConfig.mode = 'production';
99

0 commit comments

Comments
 (0)