update build config

This commit is contained in:
wryk 2020-02-23 01:07:01 +01:00
parent aa13144fe8
commit 8789ef3d94
6 changed files with 523 additions and 282 deletions

View File

@ -1,11 +1,17 @@
{ {
"presets": [ "presets": [
["@babel/preset-env", { [
"@babel/preset-env",
{
"useBuiltIns": "usage", "useBuiltIns": "usage",
"exclude": [
"@babel/plugin-transform-classes"
],
"corejs": { "corejs": {
"version": 3, "version": 3,
"proposals": true "proposals": true
} }
}] }
]
] ]
} }

7
.browserslistrc Normal file
View File

@ -0,0 +1,7 @@
last 2 chrome versions
last 2 and_chr versions
last 2 edge versions
last 2 ff versions
last 2 and_ff versions
last 2 safari versions
last 2 ios_saf versions

764
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.7.7", "@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.3", "@babel/preset-env": "^7.8.3",
"autoprefixer": "^9.7.4", "autoprefixer": "^9.7.4",
"parcel": "^1.12.4", "parcel": "^1.12.4",
@ -26,18 +26,16 @@
"dependencies": { "dependencies": {
"@popperjs/core": "^2.0.6", "@popperjs/core": "^2.0.6",
"copy-to-clipboard": "^3.2.1", "copy-to-clipboard": "^3.2.1",
"core-js-pure": "^3.6.4", "core-js": "^3.6.4",
"date-fns": "^2.9.0", "date-fns": "^2.9.0",
"get-urls": "^9.2.0", "get-urls": "^9.2.0",
"iter-tools": "^7.0.0-rc.0", "iter-tools": "^7.0.0-rc.0",
"regenerator-runtime": "^0.13.3",
"route-parser": "0.0.5", "route-parser": "0.0.5",
"svelte-pipeable-store": "^1.0.3", "svelte-pipeable-store": "^1.0.3",
"svelte-portal": "^0.1.0", "svelte-portal": "^0.1.0",
"svelte-routing": "^1.4.0" "svelte-routing": "^1.4.0"
}, },
"browserslist": [
"last 1 chrome versions"
],
"staticFiles": { "staticFiles": {
"staticPath": "public", "staticPath": "public",
"watcherGlob": "**" "watcherGlob": "**"

View File

@ -1,3 +1,7 @@
import 'core-js/stable'
import 'core-js/proposals'
import 'regenerator-runtime/runtime'
import App from '/components/App.svelte' import App from '/components/App.svelte'
const app = new App({ const app = new App({

View File

@ -1,7 +1,3 @@
import Observable from 'core-js-pure/features/observable'
import getUrls from 'get-urls'
import { urlsToMedia } from '/services/misc.js'
const LINK_RE = /<(.+?)>; rel="(\w+)"/gi const LINK_RE = /<(.+?)>; rel="(\w+)"/gi
function parseLinkHeader(linkHeader) { function parseLinkHeader(linkHeader) {