UNPKG

424 BJavaScriptView Raw
1const path = require("path");
2const common = require("@finos/perspective/src/config/common.config.js");
3
4module.exports = common({}, config =>
5 Object.assign(config, {
6 entry: "./dist/esm/viewer.js",
7 externals: [/^[a-z0-9@]/],
8 output: {
9 filename: "perspective-viewer.js",
10 libraryTarget: "umd",
11 path: path.resolve(__dirname, "../../dist/cjs")
12 }
13 })
14);