Closed sytone closed 7 months ago
If I manually update the dialog.ts file to use `import "./dialog.scss"; the compile works without error.
Are you using the latest ophidian/build? It adds support for those import prefixes.
Future versions of ophidian/core should be able to drop this requirement, at least once I figure out how to get pkgroll to do it. The issue is that newer versions of esbuild have a problem with tree-shaking CSS support, such that it includes all the project CSS even if you never use any. I switched to a different way of managing Ophidian's CSS that's compatible with newer esbuild, but the cost is that your build process now has to support those file types.
If you can't use or upgrade ophidian/build, here's the code I'm using that should be adaptable to other esbuild-based build processes.
I am now, I had a forked version as there were path issues, I moved the build script to root and the version you have is working fine. The changes I made were for the copy of the files to the dist directory. I updated the paths to be ./dist/...
adding in the prefix of ./
It is all working as expected thanks.
Closing up as the issue is now resolved. Thanks!
I'm not quite following there -- do you mean that there's a problem in ophidian/build's paths? And if so, in what part exactly? I'm looking at your fork but not seeing any commits in it.
After updating to get the latest changes I hit the following issue.
Looking it seems to be something to do with the type definition. I tried to add the typings manually but it is still failing. I loked through your repo to see if there is a setting I am missing but cannot see anything and could also not see any path changes you made for import using the scss: prefix in the import statement.
Suggestions?