feather/webpack.config.js

24 lines
573 B
JavaScript
Raw Normal View History

const path = require('path');
2017-07-04 01:06:40 +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',
// 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/,
},
],
},
};