From 2b4d45349f0e31b964c38a80ccc51fd52211a37f Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Wed, 28 Nov 2018 12:12:58 +0100 Subject: [PATCH] use compiled typescript instead of ts-loader to generate minified versions --- package.json | 1 - webpack.common.js | 7 +------ webpack.parts.js | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 8fc64af..4154174 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "nyc": "^13.1.0", "rollup": "^0.67.3", "source-map-support": "^0.5.9", - "ts-loader": "^5.3.1", "ts-node": "^7.0.1", "tslint": "^5.11.0", "typedoc": "^0.13.0", diff --git a/webpack.common.js b/webpack.common.js index fc00627..46f5b59 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -5,17 +5,12 @@ const { paths } = require('./webpack.parts.js') module.exports = { entry: paths.entry, mode: 'none', - module: { - rules: [ - { test: /\.tsx?$/, loader: "ts-loader" } - ] - }, optimization: { minimize: true, noEmitOnErrors: true }, resolve: { - extensions: ['.js','.ts'], + extensions: ['.js'], modules: ['node_modules'], }, } diff --git a/webpack.parts.js b/webpack.parts.js index dc94126..796a5e0 100644 --- a/webpack.parts.js +++ b/webpack.parts.js @@ -9,7 +9,7 @@ const production = require('./webpack.production.js') const AddVendorsPlugin = require('./plugins/add-vendors-plugin') const paths = { - entry: path.resolve(__dirname, './src/squid.ts'), + entry: path.resolve(__dirname, './dist/node/squid.js'), bundle: path.resolve(__dirname, 'dist/browser'), }