refactor(es modules): set src as TS base folder

This commit is contained in:
Azgaar 2022-06-27 01:22:30 +03:00
parent 0d05e1b250
commit 32d7db765d
8 changed files with 33 additions and 40 deletions

View file

@ -3,23 +3,12 @@
// import path from "path";
// const pathName = path.dirname(fileURLToPath(import.meta.url));
// const resolved = path.resolve(pathName, "./src");
// export default defineConfig({
// // base: "/Fantasy-Map-Generator/",
// resolve: {
// alias: {
// // "@": path.resolve(pathName, "./src")
// // "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "./src")
// // "@": path.resolve(path.dirname(fileURLToPath(import.meta.url)), "/src")
// // {
// // find: "@",
// // replacement: path.resolve(pathName, "./src"),
// // customResolver: request => {
// // console.log(request);
// // return request;
// // }
// // }
// }
// alias: [
// {find: "@", replacement: path.resolve(pathName, "./src")}
// ]
// }
// });