Skip to content

Commit

Permalink
build: ビルド回りの設定を更新
Browse files Browse the repository at this point in the history
  • Loading branch information
berlysia committed May 23, 2019
1 parent f88a4e7 commit 26f362d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 deletions.
24 changes: 20 additions & 4 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
{
"presets": ["stage-2"],
"presets": [
[
"@babel/preset-env",
{
"targets": {
"electron": "2.0.8"
}
}
]
],
"plugins": [
"transform-decorators-legacy",
"transform-class-properties"
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-json-strings",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta"
]
}
}
4 changes: 2 additions & 2 deletions app/services/protocol-links.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Service } from 'services/service';
import electron from 'electron';
import url from 'url';
import { URL, URLSearchParams } from 'url';
import { Inject } from 'util/injector';
import { NavigationService } from 'services/navigation';

Expand Down Expand Up @@ -41,7 +41,7 @@ export class ProtocolLinksService extends Service {
}

private handleLink(link: string) {
const parsed = new url.URL(link);
const parsed = new URL(link);
const info: IProtocolLinkInfo = {
base: parsed.host,
path: parsed.pathname,
Expand Down
11 changes: 9 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const CircularDependencyPlugin = require('circular-dependency-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin')

const path = require('path');

const plugins = [];
const plugins = [
new VueLoaderPlugin()
];


// uncomment to watch circular dependencies
Expand Down Expand Up @@ -125,7 +129,10 @@ module.exports = {
},
{
test: /\.svg$/,
loader: 'vue-svg-loader'
use: [
'babel-loader',
'vue-svg-loader'
]
}
]
},
Expand Down

0 comments on commit 26f362d

Please sign in to comment.