How to use the @finos/perspective/dist/esm/config.get_config function in @finos/perspective

To help you get started, we’ve selected a few @finos/perspective examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github finos / perspective / packages / perspective-webpack-plugin / index.js View on Github external
rules.push({
                test: /perspective\.wasm\.js$/,
                include: this.options.load_path,
                use: {
                    loader: PSP_WORKER_LOADER,
                    options: this.options.workerLoaderOptions
                }
            });
        }

        rules.push({
            test: /\.js$/,
            loader: "source-map-loader"
        });

        const perspective_config = get_config();
        if (perspective_config) {
            rules.push({
                test: /\.js$/,
                include: /perspective[\\/].+?[\\/]config[\\/]index\.js$/,
                use: [
                    {
                        loader: "string-replace-loader",
                        options: {
                            search: "global.__TEMPLATE_CONFIG__",
                            replace: JSON.stringify(perspective_config, null, 4)
                        }
                    }
                ]
            });
        }