mirror of
https://github.com/usebruno/bruno.git
synced 2025-08-15 14:42:47 +02:00
feat: module sharing is working across components and run packages
This commit is contained in:
26
packages/grafnode-components/webpack.config.js
Normal file
26
packages/grafnode-components/webpack.config.js
Normal file
@ -0,0 +1,26 @@
|
||||
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'
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user