EvolvedWeb / evowc

Evolved Web Components
MIT License
8 stars 0 forks source link

Windows need to convert node:path to posix version #97

Closed intervalia closed 7 months ago

intervalia commented 7 months ago

Describe the bug When we calculate out the relative paths that are used to generate the js files on a windows machine it generates the import of EvoElement.js like this: import { EvoElement, createStyles } from '..\Evo-1.1.2\EvoElement.js' Yet it needs to do it like this: import { EvoElement, createStyles } from '../Evo-1.1.2/EvoElement.js'

To fix the problem we need to convert all: import * as path from 'node:path'; with: import { posix as path } from 'node:path';

in the source code to accommodate the correct slashes.