1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-11 18:20:27 +09:00

change imports to alias

This commit is contained in:
Andrew Simachev 2022-08-02 17:23:15 +03:00
parent 945bd6d107
commit ee0d424909
278 changed files with 664 additions and 773 deletions

View file

@ -1,4 +1,3 @@
const webpack = require('webpack');
const path = require('path');
const process = require('process');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
@ -24,6 +23,14 @@ module.exports = (env) => {
resolve: {
extensions: [ '.ts', '.tsx', '.js', '.jsx' ],
alias: {
Lib: path.resolve(__dirname, 'src/ts/lib'),
Store: path.resolve(__dirname, 'src/ts/store'),
Component: path.resolve(__dirname, 'src/ts/component'),
Interface: path.resolve(__dirname, 'src/ts/interface'),
Model: path.resolve(__dirname, 'src/ts/model'),
Docs: path.resolve(__dirname, 'src/ts/docs'),
},
modules: [
path.resolve('./src/'),
path.resolve('./electron/'),
@ -55,20 +62,8 @@ module.exports = (env) => {
{
test: /\.ts(x?)$/,
exclude: /node_modules/,
use: [
{
loader: 'ts-loader'
},
{
loader: 'ifdef-loader',
options: {
version: 3,
'ifdef-verbose': true,
},
},
]
loader: 'ts-loader'
},
{ test: /\.node$/, loader: 'node-loader' },
{
enforce: 'pre',
test: /\.js$/,