I tried to exclude a file in my webpack but it is not working. I don't want it to be compiled together app.js I want it in a separate file. I read that for webpack it's not posible to compile in diferent files, but you can exclude them. So I wanted to exclude it and then compile with typescript. 

The problem is that that file has variables used from other files, I don't know if the problem is this.

I have:

```
loaders: [
    {
        test: /\.ts$/,
        exclude: './src/app/shared/config.ts',
        loader: 'ts'
    },

```

I thought that maybe adding it to entries it can work, but as I read you can't, I discarted that posibility. Now I have at entries:

```
entry: {
    polyfills: './src/polyfills.ts',
    vendor: './src/vendor.ts',
    app: './src/main.ts'
},

```