Merge pull request #16 from bastilimbach/fix/issue-15

Rename module variable to module_es2015. Fixes #15
This commit is contained in:
Șandor Sergiu 2017-03-05 21:40:52 +02:00 committed by GitHub
commit 79beb0f5f3
3 changed files with 12 additions and 6 deletions

View file

@ -17,14 +17,14 @@ rollup({
entry: 'src/vanilla-tilt.js',
plugins: [
nodeResolve({
module: true,
module_es2015: true,
jsnext: true,
main: true,
})
],
external: external
}).then(bundle => bundle.write({
dest: pkg.module,
dest: pkg.module_es2015,
format: 'es'
})).catch(err => console.log(err.stack));
@ -32,7 +32,7 @@ rollup({
entry: 'src/vanilla-tilt.js',
plugins: [
nodeResolve({
module: true,
module_es2015: true,
jsnext: true,
main: true,
}),
@ -53,7 +53,7 @@ rollup({
entry: 'src/vanilla-tilt.js',
plugins: [
nodeResolve({
module: true,
module_es2015: true,
jsnext: true,
main: true,
})
@ -78,7 +78,7 @@ rollup({
entry: 'src/vanilla-tilt.js',
plugins: [
nodeResolve({
module: true,
module_es2015: true,
jsnext: true,
main: true
}),

View file

@ -59,6 +59,12 @@ You can copy and include any of the following file:
* [dist/vanilla-tilt.babel.js](https://raw.githubusercontent.com/micku7zu/vanilla-tilt.js/master/dist/vanilla-tilt.babel.js) ~ 8.5kb
* [dist/vanilla-tilt.babel.min.js](https://raw.githubusercontent.com/micku7zu/vanilla-tilt.js/master/dist/vanilla-tilt.babel.min.js) ~ 4.3kb
Also available on npm https://www.npmjs.com/package/vanilla-tilt
```
npm install vanilla-tilt
```
### Credits
Original library: [Tilt.js](http://gijsroge.github.io/tilt.js/)

View file

@ -3,7 +3,7 @@
"version": "1.3.0",
"description": "A smooth 3D tilt javascript library forked from Tilt.js",
"main": "lib/vanilla-tilt.js",
"module": "lib/vanilla-tilt.es2015.js",
"module_es2015": "lib/vanilla-tilt.es2015.js",
"jsnext:main": "lib/vanilla-tilt.es2015.js",
"distrib": "dist/vanilla-tilt.js",
"scripts": {