Files
lucide/packages/js/webpack.config.js
John Letey d652e795d6 feat: Add react package (#4)
* chore: Organise

* feat: Add `react` package

* refactor: Remove unneeded char
2020-06-13 12:52:10 +01:00

24 lines
573 B
JavaScript

const path = require('path');
module.exports = {
entry: ['core-js/es/array/from', path.resolve(__dirname, 'src/index.js')],
output: {
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'umd',
library: 'feather',
// Prevents webpack from referencing `window` in the UMD build
// Source: https://git.io/vppgU
globalObject: "typeof self !== 'undefined' ? self : this",
},
devtool: 'source-map',
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
},
],
},
};