Skip to content

Commit 885082c

Browse files
committed
Update to UMD
1 parent c6c7419 commit 885082c

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

dist/animate-top-offset.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@three11/animate-top-offset",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "Scroll a container to a specific Y offset",
55
"main": "dist/animate-top-offset.min.js",
66
"scripts": {
@@ -44,6 +44,7 @@
4444
"@babel/preset-env": "7.1.0",
4545
"rollup": "0.66.5",
4646
"rollup-plugin-babel": "4.0.3",
47+
"rollup-plugin-commonjs": "^9.1.8",
4748
"rollup-plugin-uglify": "6.0.0"
4849
}
4950
}

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
output: {
77
file: 'dist/animate-top-offset.min.js',
88
name: 'animateTopOffset',
9-
format: 'iife'
9+
format: 'umd'
1010
},
1111
plugins: [
1212
babel({
@@ -18,4 +18,4 @@ export default {
1818
}),
1919
uglify()
2020
]
21-
};
21+
};

yarn.lock

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ escape-string-regexp@^1.0.5:
962962
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
963963
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
964964

965-
estree-walker@^0.5.2:
965+
estree-walker@^0.5.1, estree-walker@^0.5.2:
966966
version "0.5.2"
967967
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.2.tgz#d3850be7529c9580d815600b53126515e146dd39"
968968
integrity sha512-XpCnW/AE10ws/kDAs37cngSkvgIR8aN3G0MS85m7dUpuK2EREo9VJ00uvw6Dg/hXEpfsE1I1TvJOJr+Z+TL+ig==
@@ -1510,6 +1510,13 @@ loose-envify@^1.0.0:
15101510
dependencies:
15111511
js-tokens "^3.0.0 || ^4.0.0"
15121512

1513+
magic-string@^0.22.4:
1514+
version "0.22.5"
1515+
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.22.5.tgz#8e9cf5afddf44385c1da5bc2a6a0dbd10b03657e"
1516+
integrity sha512-oreip9rJZkzvA8Qzk9HFs8fZGF/u7H/gtrE8EN6RjKJ9kh2HlC+yQ2QezifqTZfGyiuAV0dRv5a+y/8gBb1m9w==
1517+
dependencies:
1518+
vlq "^0.2.2"
1519+
15131520
map-cache@^0.2.2:
15141521
version "0.2.2"
15151522
resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf"
@@ -1965,7 +1972,7 @@ resolve-url@^0.2.1:
19651972
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
19661973
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
19671974

1968-
resolve@^1.3.2:
1975+
resolve@^1.3.2, resolve@^1.5.0:
19691976
version "1.8.1"
19701977
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26"
19711978
integrity sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==
@@ -1992,6 +1999,16 @@ [email protected]:
19921999
"@babel/helper-module-imports" "^7.0.0"
19932000
rollup-pluginutils "^2.3.0"
19942001

2002+
rollup-plugin-commonjs@^9.1.8:
2003+
version "9.1.8"
2004+
resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.1.8.tgz#4113ed94e6054b5f8a3501d8811f934cadde3246"
2005+
integrity sha512-c3nAfVVyEwbq9OohIeQudfQQdGV9Cl1RE8MUc90fH9UdtCiWAYpI+au3HxGwNf1DdV51HfBjCDbT4fwjsZEUUg==
2006+
dependencies:
2007+
estree-walker "^0.5.1"
2008+
magic-string "^0.22.4"
2009+
resolve "^1.5.0"
2010+
rollup-pluginutils "^2.0.1"
2011+
19952012
19962013
version "6.0.0"
19972014
resolved "https://registry.yarnpkg.com/rollup-plugin-uglify/-/rollup-plugin-uglify-6.0.0.tgz#15aa8919e5cdc63b7cfc9319c781788b40084ce4"
@@ -2002,7 +2019,7 @@ [email protected]:
20022019
serialize-javascript "^1.5.0"
20032020
uglify-js "^3.4.9"
20042021

2005-
rollup-pluginutils@^2.3.0:
2022+
rollup-pluginutils@^2.0.1, rollup-pluginutils@^2.3.0:
20062023
version "2.3.3"
20072024
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.3.3.tgz#3aad9b1eb3e7fe8262820818840bf091e5ae6794"
20082025
integrity sha512-2XZwja7b6P5q4RZ5FhyX1+f46xi1Z3qBKigLRZ6VTZjwbN0K1IFGMlwm06Uu0Emcre2Z63l77nq/pzn+KxIEoA==
@@ -2323,6 +2340,11 @@ util-deprecate@~1.0.1:
23232340
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
23242341
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
23252342

2343+
vlq@^0.2.2:
2344+
version "0.2.3"
2345+
resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.3.tgz#8f3e4328cf63b1540c0d67e1b2778386f8975b26"
2346+
integrity sha512-DRibZL6DsNhIgYQ+wNdWDL2SL3bKPlVrRiBqV5yuMm++op8W4kGFtaQfCs4KEJn0wBZcHVHJ3eoywX8983k1ow==
2347+
23262348
wide-align@^1.1.0:
23272349
version "1.1.3"
23282350
resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457"

0 commit comments

Comments
 (0)