123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: BI (C) Copyright IBM Corp. 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- const path = require("path");
- const config = {
- bail: true,
- entry: {
- "glass.webpack.bundle": [
- path.resolve(__dirname, "../src/js/baglass/react/index.js")
- ]
- },
- output: {
- libraryTarget: "umd",
- path: path.resolve(__dirname, "../js/baglass"),
- filename: "[name].js",
- sourceMapFilename: "[name].js.map",
- publicPath: "/bi/js/glass/baglass/js/baglass/app/"
- },
- externals: [{
- "i18n!": "i18n!",
- react: "react",
- "react-dom": "react-dom",
- mobx: "mobx",
- "mobx-react": "mobx-react",
- "mobx-state-tree": "mobx-state-tree",
- jquery: "jquery",
- "ca-ui-toolkit-core": "ca-ui-toolkit-core",
- underscore: "underscore",
- "prop-types": "prop-types"
- },
- /^baglass\/(.)+/
- ],
- module: {
- rules: [{
- test: /(\.jsx|\.js)$/,
- loader: "babel-loader",
- options: {
- filename: "glass.webpack.bundle",
- babelrc: true,
- babelrcRoots: [".."]
- },
- exclude: [/node_modules/]
- }]
- },
- resolve: {
- extensions: [".js", ".jsx", ".ts", ".tsx"],
- alias: {
- "webpackedGlass": path.resolve(__dirname, "../src/js/baglass/react")
- }
- }
- };
- module.exports = config;
|