1 | /*
|
2 | * Copyright 2017 Palantir Technologies, Inc. All rights reserved.
|
3 | * Licensed under the Apache License, Version 2.0 (the "License");
|
4 | * you may not use this file except in compliance with the License.
|
5 | * You may obtain a copy of the License at
|
6 | *
|
7 | * http://www.apache.org/licenses/LICENSE-2.0
|
8 | *
|
9 | * Unless required by applicable law or agreed to in writing, software
|
10 | * distributed under the License is distributed on an "AS IS" BASIS,
|
11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | * See the License for the specific language governing permissions and
|
13 | * limitations under the License.
|
14 | */
|
15 |
|
16 | // @ts-check
|
17 |
|
18 | import { resolve } from "node:path";
|
19 | import { cwd } from "node:process";
|
20 |
|
21 | import { baseConfig, COMMON_EXTERNALS } from "@blueprintjs/webpack-build-scripts";
|
22 |
|
23 | export default Object.assign({}, baseConfig, {
|
24 | entry: {
|
25 | select: ["./src/index.ts"],
|
26 | },
|
27 |
|
28 | externals: COMMON_EXTERNALS,
|
29 |
|
30 | output: {
|
31 | filename: "[name].bundle.js",
|
32 | library: ["Blueprint", "Select"],
|
33 | libraryTarget: "umd",
|
34 | path: resolve(cwd(), "./dist"),
|
35 | },
|
36 | });
|