diff --git a/package.json b/package.json index e55f216..698cac3 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "object" ], "devDependencies": { - "@sindresorhus/is": "^0.5.0", + "@sindresorhus/is": "^0.6.0", "@types/node": "^8.0.31", "ava": "*", "awesome-typescript-loader": "^3.2.3", @@ -57,7 +57,7 @@ "lodash.isequal": "^4.5.0", "nyc": "^11.2.1", "tslint": "^5.8.0", - "tslint-xo": "^0.2.0", + "tslint-xo": "^0.3.0", "typescript": "^2.6.1", "vali-date": "^1.0.0", "webpack": "^3.8.1" diff --git a/webpack.config.js b/webpack.config.js index 151f114..69fc618 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,6 +6,7 @@ const BannerWebpackPlugin = require('banner-webpack-plugin'); module.exports = { entry: './source/index.ts', target: 'node', + node: false, // Disables polyfill Node.js globals devtool: 'source-map', output: { filename: 'dist/index.js', @@ -20,7 +21,7 @@ module.exports = { // For CommonJS default export support new BannerWebpackPlugin({ chunks: { - 'main': { + main: { afterContent: `module.exports = ow.default;\nmodule.exports.default = ow.default;\n//# sourceMappingURL=index.js.map`, removeAfter: '//# sourceMappingURL=index.js.map' }