Improve import alias

@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
Dolan Miu
2022-06-26 23:26:42 +01:00
parent c19bc6b4b3
commit 982d923553
380 changed files with 758 additions and 521 deletions

View File

@ -1,5 +1,6 @@
const path = require("path");
const { ProvidePlugin } = require("webpack");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const configuration = {
mode: "production",
@ -21,6 +22,7 @@ const configuration = {
buffer: require.resolve("buffer"),
stream: require.resolve("stream-browserify"),
},
plugins: [new TsconfigPathsPlugin()],
},
module: {
@ -29,7 +31,7 @@ const configuration = {
test: /\.ts$/,
loader: "ts-loader",
options: {
configFile: "tsconfig.json",
configFile: "tsconfig.lib.json",
},
},
],