Skip to content

Commit 09bd545

Browse files
committed
vite scrwes with generate... lol
1 parent 127c8b9 commit 09bd545

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

app.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@
4848
</div>
4949
</template>
5050
<script>
51-
// import {pathPosixToWin32, pathWin32ToPosix} from "##/src/pathReplacement.mjs";
52-
// import {win32ToWin32JS} from "##/src/win32ToWin32JS.mjs";
53-
// import {win32ToWin32Slash, win32ToWin32WSL2} from "##/src/win32ToWin32WSL2.mjs";
51+
// import {pathPosixToWin32, pathWin32ToPosix} from "~/src/pathReplacement.mjs";
52+
// import {win32ToWin32JS} from "~/src/win32ToWin32JS.mjs";
53+
// import {win32ToWin32Slash, win32ToWin32WSL2} from "~/src/win32ToWin32WSL2.mjs";
5454
55-
import {posixTests, win32Tests} from "##/lib/nodePathTestExamples.mjs";
56-
import {pathPosixToWin32, pathWin32ToPosix,win32ToWin32JS,win32ToWin32Slash,win32ToWin32WSL2} from "##/lib/dist/index.mjs";
55+
import {posixTests, win32Tests} from "~/lib/nodePathTestExamples.mjs";
56+
// import {posixTests, win32Tests} from "##/lib/nodePathTestExamples.mjs";
57+
// import {pathPosixToWin32, pathWin32ToPosix,win32ToWin32JS,win32ToWin32Slash,win32ToWin32WSL2} from "##/lib/dist/index.mjs";
58+
import {pathPosixToWin32, pathWin32ToPosix,win32ToWin32JS,win32ToWin32Slash,win32ToWin32WSL2} from "~/lib/dist/index.mjs";
5759
export default {
5860
name:'app',
5961
mounted(){

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// "##/*": [
77
// "./*"
88
// ],
9-
//
9+
// "#src": [
10+
// "src"
11+
// ]
1012
// }
1113
// }
1214
}

vite.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Apparently this messes with the build....
3+
*/
14
// Utilities
25
import { defineConfig } from 'vite'
36
import { fileURLToPath, URL } from 'node:url'
@@ -28,7 +31,7 @@ export default defineConfig({
2831
outDir: fileURLToPath(new URL('./lib/dist/', import.meta.url)),
2932
lib: {
3033
name: 'nuxt3-win32-posix-path',
31-
formats: ['es', 'cjs'],//('es' | 'cjs' | 'umd' | 'iife')
34+
formats: ['es', 'cjs','umd'],//('es' | 'cjs' | 'umd' | 'iife')
3235
//i lost my jsdocs though... weird
3336
entry: [ //"entry" can be a dictionary or array of multiple entry points
3437
fileURLToPath(new URL('./src/index.mjs', import.meta.url)),
@@ -45,7 +48,7 @@ export default defineConfig({
4548
rollupOptions: {
4649
// make sure to externalize deps that shouldn't be bundled
4750
// into your library
48-
external: ['puppeteer',"puppeteer-core","node:path/posix","node*"],
51+
// external: ['puppeteer',"puppeteer-core","node:path/posix","node*"],
4952
output: {
5053
// Provide global variables to use in the UMD build
5154
// for externalized deps

0 commit comments

Comments
 (0)