-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrollup.config.mjs
37 lines (33 loc) · 995 Bytes
/
rollup.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { nodeResolve } from "@rollup/plugin-node-resolve";
import { getBabelOutputPlugin } from "@rollup/plugin-babel";
import commonjs from "@rollup/plugin-commonjs";
const banner = `
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Third party license at https://github.com/aws-geospatial/amazon-location-utilities-datatypes-js/blob/main/LICENSE-THIRD-PARTY.txt
`;
export default {
input: "./dist/esm/index.js",
plugins: [
nodeResolve({
browser: true,
}),
commonjs(),
],
output: [
{
file: "dist/amazonLocationDataConverter.js",
format: "esm",
banner,
plugins: [
getBabelOutputPlugin({
minified: true,
moduleId: "amazonLocationDataConverter",
presets: [["@babel/env", { modules: "umd" }]],
}),
],
},
],
};