mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-12 01:30:42 +01:00
26 lines
461 B
JavaScript
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'
|
|
}
|
|
}; |