-
Notifications
You must be signed in to change notification settings - Fork 1
/
rollup.config.mjs
43 lines (39 loc) · 1.12 KB
/
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
38
39
40
41
42
43
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { nodeResolve } from "@rollup/plugin-node-resolve";
import json from "@rollup/plugin-json";
import commonjs from "@rollup/plugin-commonjs";
import { getBabelOutputPlugin } from "@rollup/plugin-babel";
import nodePolyfills from "rollup-plugin-polyfill-node";
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-migration/blob/main/LICENSE-THIRD-PARTY.txt
`;
export default {
input: "./dist/esm/index.js",
plugins: [
nodeResolve({
browser: true,
}),
json(),
commonjs(),
nodePolyfills({
include: ["events"],
}),
],
output: [
{
file: "dist/amazonLocationMigrationSDK.js",
format: "esm",
banner,
plugins: [
getBabelOutputPlugin({
minified: true,
moduleId: "amazonLocationMigrationSDK",
presets: [["@babel/env", { modules: "umd" }]],
}),
],
},
],
};