Improve import alias
@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
@ -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",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user