Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Akryum/vue-virtual-scroller
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: hokify/vue-virtual-scroller
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 14 files changed
  • 1 contributor

Commits on May 6, 2019

  1. Copy the full SHA
    067a8ff View commit details
  2. Copy the full SHA
    db98bbe View commit details
  3. Copy the full SHA
    5b92a80 View commit details
  4. Copy the full SHA
    ac47f6d View commit details

Commits on May 10, 2019

  1. Copy the full SHA
    15a19d9 View commit details
  2. Copy the full SHA
    46abc06 View commit details
  3. chore: rc 8

    simllll committed May 10, 2019
    Copy the full SHA
    212400e View commit details
  4. Copy the full SHA
    84dfb3b View commit details
  5. Copy the full SHA
    beed6d6 View commit details
8 changes: 6 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"presets": [
["env", { "modules": false }],
"stage-0"
[
"@babel/preset-env",
{
"loose": true
}
]
]
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# fork
this is a fork of https://github.com/Akryum/vue-virtual-scroller:
* uses @hokify/vue-observe-visibility to fix observer error
* also includes library updates

* does transpile to es5 (via babel), but does not polyfill (e.g. Map). use core-js to polyfill this if needed (e.g. core-js/modules/es.map)

To install this fork, use:
```
npm install --save @hokify/vue-virtual-scroller
```

# vue-virtual-scroller

[![npm](https://img.shields.io/npm/v/vue-virtual-scroller.svg) ![npm](https://img.shields.io/npm/dm/vue-virtual-scroller.svg)](https://www.npmjs.com/package/vue-virtual-scroller)
27 changes: 14 additions & 13 deletions build/rollup.config.base.js
Original file line number Diff line number Diff line change
@@ -3,34 +3,35 @@ import resolve from 'rollup-plugin-node-resolve'
import vue from 'rollup-plugin-vue'
import cjs from 'rollup-plugin-commonjs'
import replace from 'rollup-plugin-replace'
import eslint from 'rollup-plugin-eslint'
// import { eslint } from 'rollup-plugin-eslint'
import fs from 'fs'
import CleanCSS from 'clean-css'
import css from 'rollup-plugin-css-only'

const config = require('../package.json')

export default {
input: 'src/index.js',
plugins: [
resolve({
jsnext: true,
main: true,
browser: true,
mainFields: ['module', 'jsnext', 'browser'],
}),
cjs(),
eslint(),
// eslint(),
css({ output: (style) => {
const file = require.resolve('vue-resize/dist/vue-resize.css')
style += fs.readFileSync(file, { encoding: 'utf8' })
fs.writeFileSync('dist/vue-virtual-scroller.css', new CleanCSS().minify(style).styles)
} }),
vue({
css (style) {
const file = require.resolve('vue-resize/dist/vue-resize.css')
style += fs.readFileSync(file, { encoding: 'utf8' })
fs.writeFileSync('dist/vue-virtual-scroller.css', new CleanCSS().minify(style).styles)
css: false,
compileTemplate: true,
template: {
isProduction: true,
},
}),
babel({
exclude: 'node_modules/**',
'plugins': [
'external-helpers',
],
extensions: ['.js', '.jsx', '.es6', '.es', '.mjs', '.vue'],
}),
replace({
VERSION: JSON.stringify(config.version),
8 changes: 5 additions & 3 deletions build/rollup.config.browser.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import base from './rollup.config.base'
import uglify from 'rollup-plugin-uglify'
import { minify } from 'uglify-es'
import { uglify } from 'rollup-plugin-uglify'

const config = Object.assign({}, base, {
output: {
exports: 'named',
name: 'VueVirtualScroller',
file: 'dist/vue-virtual-scroller.min.js',
format: 'iife',
globals: {
'vue': 'Vue',
},
},
})

config.plugins.push(uglify({}, minify))
config.plugins.push(uglify())

export default config
8 changes: 8 additions & 0 deletions build/rollup.config.es.js
Original file line number Diff line number Diff line change
@@ -5,6 +5,14 @@ const config = Object.assign({}, base, {
name: 'vue-virtual-scroller',
file: 'dist/vue-virtual-scroller.esm.js',
format: 'es',
globals: {
'vue': 'Vue',
},
external: [
'scrollparent',
'vue-observe-visibility',
'vue-resize',
],
},
})

3 changes: 3 additions & 0 deletions build/rollup.config.umd.js
Original file line number Diff line number Diff line change
@@ -6,6 +6,9 @@ const config = Object.assign({}, base, {
name: 'vue-virtual-scroller',
file: 'dist/vue-virtual-scroller.umd.js',
format: 'umd',
globals: {
'vue': 'Vue',
},
},
})

1 change: 0 additions & 1 deletion dist/vue-virtual-scroller.css

This file was deleted.

Loading