mailgun.js 3.5.9 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/webpack.config.js DELETED
@@ -1,49 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- const webpack = require('webpack');
3
- const path = require('path');
4
-
5
- const pkg = require('./package.json');
6
-
7
- module.exports = () => {
8
- const outputDir = 'dist';
9
-
10
- return {
11
- mode: 'development',
12
- target: 'node',
13
- context: __dirname,
14
- entry: {
15
- mailgun: path.resolve(__dirname, './index.ts'),
16
- 'mailgun.min': path.resolve(__dirname, './index.ts')
17
- },
18
- output: {
19
- path: path.resolve('./', outputDir),
20
- filename: 'mailgun.js',
21
- library: 'mailgun',
22
- libraryTarget: 'umd',
23
- globalObject: 'this',
24
- },
25
- module: {
26
- rules: [
27
- {
28
- test: /\.(ts|js)?/,
29
- use: [
30
- {
31
- loader: 'babel-loader',
32
- },
33
- {
34
- loader: 'ts-loader?configFile=tsconfig.webpack.json',
35
- }
36
- ],
37
- exclude: /(node_modules|test)/
38
- }
39
- ]
40
- },
41
- plugins: [
42
- new webpack.BannerPlugin(`${pkg.name} v${pkg.version}`)
43
- ],
44
- resolve: {
45
- extensions: ['.ts', '.js', '.json']
46
- },
47
- devtool: 'inline-source-map'
48
- };
49
- };
@@ -1,29 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-var-requires */
2
- const path = require('path');
3
- const { merge } = require('webpack-merge');
4
-
5
- const TerserPlugin = require('terser-webpack-plugin');
6
- const baseConfig = require('./webpack.config.js');
7
-
8
- module.exports = (env) => {
9
- const outputDir = 'dist';
10
-
11
- return merge(baseConfig(env), {
12
- mode: 'production',
13
- output: {
14
- path: path.resolve('./', outputDir),
15
- },
16
- devtool: undefined,
17
- optimization: {
18
- minimize: true,
19
- minimizer: [
20
- new TerserPlugin({
21
- parallel: true,
22
- terserOptions: {
23
- keep_classnames: true,
24
- }
25
- }),
26
- ],
27
- },
28
- });
29
- };