1 | const path = require("path");
|
2 | const common = require("@finos/perspective/src/config/common.config.js");
|
3 |
|
4 | module.exports = common({}, config => {
|
5 | return Object.assign(config, {
|
6 | entry: {
|
7 | "perspective-viewer": "./dist/esm/viewer.js"
|
8 | },
|
9 | output: {
|
10 | filename: "[name].js",
|
11 | chunkFilename: "perspective-viewer.[name].js",
|
12 | libraryTarget: "umd",
|
13 | path: path.resolve(__dirname, "../../dist/umd")
|
14 | },
|
15 | experiments: {
|
16 | syncWebAssembly: true
|
17 | }
|
18 | });
|
19 | });
|