This commit is contained in:
35
node_modules/react-aria-menubutton/webpack-umd.config.js
generated
vendored
Normal file
35
node_modules/react-aria-menubutton/webpack-umd.config.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
const path = require("path");
|
||||
|
||||
const filename = process.env.MINIFY
|
||||
? "ReactAriaMenuButton.min.js"
|
||||
: "ReactAriaMenuButton.js";
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
AriaMenuButton: "./src/index.js"
|
||||
},
|
||||
output: {
|
||||
library: "ReactAriaMenuButton",
|
||||
libraryTarget: "umd",
|
||||
path: path.join(__dirname, "umd"),
|
||||
filename: filename
|
||||
},
|
||||
externals: [
|
||||
{
|
||||
react: {
|
||||
root: "React",
|
||||
commonjs2: "react",
|
||||
commonjs: "react",
|
||||
amd: "react"
|
||||
}
|
||||
},
|
||||
],
|
||||
module: {
|
||||
rules: [{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" }]
|
||||
},
|
||||
node: {
|
||||
Buffer: false,
|
||||
process: false,
|
||||
setImmediate: false
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user