feat: module sharing is working across components and run packages

This commit is contained in:
Anoop M D
2021-12-03 23:34:48 +05:30
parent e04bf87bf1
commit fd4ac03a97
24 changed files with 24078 additions and 380 deletions

View 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'
}
};