2018-05-18 22:26:21 +03:00
|
|
|
const path = require('path');
|
2017-07-04 01:06:40 +03:00
|
|
|
|
2018-05-18 22:26:21 +03:00
|
|
|
module.exports = {
|
|
|
|
entry: ['core-js/fn/array/from', path.resolve(__dirname, 'src/index.js')],
|
2017-07-04 01:06:40 +03:00
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
libraryTarget: 'umd',
|
|
|
|
library: 'feather',
|
2018-05-19 02:00:26 +03:00
|
|
|
// Prevents webpack from referencing `window` in the UMD build
|
|
|
|
// Source: https://git.io/vppgU
|
2018-05-19 02:03:39 +03:00
|
|
|
globalObject: "typeof self !== 'undefined' ? self : this",
|
2017-07-04 01:06:40 +03:00
|
|
|
},
|
|
|
|
devtool: 'source-map',
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'babel-loader',
|
|
|
|
exclude: /node_modules/,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|