mirror of
https://github.com/usebruno/bruno.git
synced 2025-03-02 16:41:13 +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'
|
||
|
}
|
||
|
};
|