source: trip-planner-front/node_modules/@angular-devkit/build-angular/src/webpack/configs/worker.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 900 bytes
Line 
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.getWorkerConfig = void 0;
11const path_1 = require("path");
12const typescript_1 = require("./typescript");
13function getWorkerConfig(wco) {
14 const { buildOptions } = wco;
15 if (!buildOptions.webWorkerTsConfig) {
16 return {};
17 }
18 if (typeof buildOptions.webWorkerTsConfig != 'string') {
19 throw new Error('The `webWorkerTsConfig` must be a string.');
20 }
21 const workerTsConfigPath = path_1.resolve(wco.root, buildOptions.webWorkerTsConfig);
22 return {
23 plugins: [typescript_1.getTypescriptWorkerPlugin(wco, workerTsConfigPath)],
24 };
25}
26exports.getWorkerConfig = getWorkerConfig;
Note: See TracBrowser for help on using the repository browser.