Skip to content

Commit 3a8df77

Browse files
authored
build: change output name (#4)
1 parent 8538f0b commit 3a8df77

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ or
2424

2525
Alternativly you may add the umd package directly to the html document using the unpkg link.
2626

27-
`<script src="https://unpkg.com/@googlemaps/js-api-loader@1.0.0/dist/loader.umd.js"></script>`
27+
`<script src="https://unpkg.com/@googlemaps/js-api-loader@1.0.0/dist/index.min.js"></script>`
2828

2929
When adding via unpkg, the loader can be accessed at `google.maps.plugins.loader.Loader`.
3030

e2e/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<head>
2020
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
2121
<script src="http://unpkg.com/jest-lite@1.0.0-alpha.4/dist/core.js"></script>
22-
<script src="../dist/loader.min.js"></script>
22+
<script src="../dist/index.min.js"></script>
2323
<style>
2424
#map {
2525
height: 100%;

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
padding: 0;
2929
}
3030
</style>
31-
<script type="text/javascript" src="../dist/loader.dev.js"></script>
31+
<script type="text/javascript" src="../dist/index.dev.js"></script>
3232

3333
<script type="text/javascript">
3434
const mapOptions = {

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
},
1717
"license": "Apache-2.0",
1818
"author": "Justin Poehnelt",
19-
"main": "dist/loader.umd.js",
20-
"unpkg": "dist/loader.min.js",
21-
"module": "dist/loader.esm.js",
19+
"main": "dist/index.umd.js",
20+
"unpkg": "dist/index.min.js",
21+
"module": "dist/index.esm.js",
2222
"types": "dist/index.d.ts",
2323
"scripts": {
2424
"docs": "typedoc",

rollup.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default [
3535
terser(terserOptions),
3636
],
3737
output: {
38-
file: "dist/loader.umd.js",
38+
file: "dist/index.umd.js",
3939
format: "umd",
4040
name: "google.maps.plugins.loader",
4141
sourcemap: true,
@@ -50,7 +50,7 @@ export default [
5050
terser(terserOptions),
5151
],
5252
output: {
53-
file: "dist/loader.min.js",
53+
file: "dist/index.min.js",
5454
format: "iife",
5555
name: "google.maps.plugins.loader",
5656
},
@@ -59,7 +59,7 @@ export default [
5959
input: "src/index.ts",
6060
plugins: [typescript(), commonjs(), babel(babelOptions)],
6161
output: {
62-
file: "dist/loader.dev.js",
62+
file: "dist/index.dev.js",
6363
format: "iife",
6464
name: "google.maps.plugins.loader",
6565
},
@@ -68,7 +68,7 @@ export default [
6868
input: "src/index.ts",
6969
plugins: [typescript()],
7070
output: {
71-
file: "dist/loader.esm.js",
71+
file: "dist/index.esm.js",
7272
format: "esm",
7373
sourcemap: true,
7474
},

0 commit comments

Comments
 (0)