Skip to content

Commit c07c2fd

Browse files
committed
Fixes compilation errors
1 parent 6ec9876 commit c07c2fd

File tree

6 files changed

+49
-10
lines changed

6 files changed

+49
-10
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ By default, the vue-router doesn't scroll to the top of a page when you navigate
99

1010
## How do I use it?
1111

12+
#### NOTE: Your project must use webpack or another bundler that supports es modules (e.g. use the vue-cli)
13+
1214
1. In a shell / command line:
1315
```
1416
yarn add vue-default-scroll

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"build": "tsc"
1212
},
1313
"dependencies": {
14+
"vue": "^2.6.10",
1415
"vue-router": "^3.1.3"
1516
},
1617
"devDependencies": {

src/index.js

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js.map

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

tsconfig.json

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
11
{
2-
"compileOnSave": true,
32
"compilerOptions": {
3+
"target": "esnext",
44
"module": "esnext",
5-
"noImplicitAny": true,
6-
"removeComments": true,
7-
"preserveConstEnums": true,
8-
"sourceMap": false,
9-
"outDir": "dist",
10-
"declaration": true
5+
"strict": true,
6+
"jsx": "preserve",
7+
"importHelpers": true,
8+
"moduleResolution": "node",
9+
"esModuleInterop": true,
10+
"allowSyntheticDefaultImports": true,
11+
"sourceMap": true,
12+
"baseUrl": ".",
13+
"paths": {
14+
"@/*": [
15+
"src/*"
16+
]
17+
},
18+
"lib": [
19+
"esnext",
20+
"dom",
21+
"dom.iterable",
22+
"scripthost"
23+
]
1124
},
1225
"include": [
13-
"src/**/*"
26+
"src/**/*.ts",
27+
"src/**/*.tsx",
28+
"src/**/*.vue",
29+
"tests/**/*.ts",
30+
"tests/**/*.tsx"
1431
],
1532
"exclude": [
16-
"node_modules",
17-
"**/*.spec.ts"
33+
"node_modules"
1834
]
1935
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,8 @@ vue-router@^3.1.3:
1111
version "3.1.3"
1212
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.1.3.tgz#e6b14fabc0c0ee9fda0e2cbbda74b350e28e412b"
1313
integrity sha512-8iSa4mGNXBjyuSZFCCO4fiKfvzqk+mhL0lnKuGcQtO1eoj8nq3CmbEG8FwK5QqoqwDgsjsf1GDuisDX4cdb/aQ==
14+
15+
vue@^2.6.10:
16+
version "2.6.10"
17+
resolved "https://registry.yarnpkg.com/vue/-/vue-2.6.10.tgz#a72b1a42a4d82a721ea438d1b6bf55e66195c637"
18+
integrity sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ==

0 commit comments

Comments
 (0)