Skip to content

Commit 805c04a

Browse files
committed
fix: changing countries for the json file
1 parent 7796adf commit 805c04a

File tree

7 files changed

+990
-3
lines changed

7 files changed

+990
-3
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"devDependencies": {
1717
"@babel/core": "^7.11.4",
1818
"@babel/preset-env": "^7.11.0",
19+
"@rollup/plugin-json": "^4.1.0",
1920
"@rollup/plugin-typescript": "^8.2.5",
2021
"@testing-library/jest-dom": "^5.11.4",
2122
"@testing-library/svelte": "^3.0.0",

rollup.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { terser } from "rollup-plugin-terser";
66
import typescript from "@rollup/plugin-typescript";
77
import autoPreprocess from "svelte-preprocess";
88
import svelteDts from "svelte-dts";
9+
import json from "@rollup/plugin-json";
910
import pkg from "./package.json";
1011

1112
const production = !process.env.ROLLUP_WATCH;
@@ -20,6 +21,7 @@ export default [
2021
file: "public/build/bundle.js",
2122
},
2223
plugins: [
24+
json(),
2325
svelte({
2426
dev: !production,
2527
css: (css) => css.write("bundle.css"),

src/dev/App.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import InfiniteScroll from "../lib/InfiniteScroll.svelte";
3-
import allCountries from "./countries.js";
3+
import allCountries from "./countries.json";
44
55
let page = 0;
66
let size = 20;

0 commit comments

Comments
 (0)