bruno/packages/grafnode-components/webpack.config.js

26 lines
461 B
JavaScript

const path = require('path');
module.exports = {
entry: "./src/index.js",
output: {
globalObject: 'this',
filename: "index.js",
path: path.resolve(__dirname, "dist"),
libraryTarget: "umd",
library: "@grafnode/components"
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader"
}
}
]
},
externals: {
'react': 'react'
}
};