soluml Github contribution chart
soluml Github Stats
soluml Most Used Languages

Activity

02 Sep 2022

Soluml

Add tests for @when/@else exclusions

Pushed On 02 Sep 2022 at 03:38:47

Soluml

Added exclusions for @when and @else

Pushed On 02 Sep 2022 at 03:34:16

Soluml

0.4.0

Pushed On 02 Sep 2022 at 03:34:16

Soluml

fix regex again

Pushed On 02 Sep 2022 at 03:30:04

Soluml

2.1.3

Pushed On 02 Sep 2022 at 03:30:04

Soluml

version

Pushed On 02 Sep 2022 at 03:30:04

Soluml

Up

Pushed On 02 Sep 2022 at 03:26:21

Soluml

regex fix

Pushed On 02 Sep 2022 at 03:20:15

Soluml

tweak

Pushed On 02 Sep 2022 at 03:16:54

Soluml

Add Astro integration

Pushed On 02 Sep 2022 at 03:00:58

Soluml

add astro index.ts

Pushed On 31 Aug 2022 at 01:19:24

Soluml

Update tests

Pushed On 28 Aug 2022 at 03:39:49
Issue Comment

Soluml

Errors when running basic example in WSL2

What version of astro are you using?

1.0.6

Are you using an SSR adapter? If so, which one?

none

What package manager are you using?

pnpm

What operating system are you using?

WSL2

Describe the Bug

Build and preview are not working on WSL2 with standard example. Error:

 error   failed to load module for ssr: /src/astro-test/src/pages/index.astro?astro&type=style&index=0&lang.css 

I tried using npm, or previous version (1.0.5) without success. For now I managed to make it work in Docker. I'm using node 18.7

Link to Minimal Reproducible Example

https://placeholder.example.com#not-reproducable-on-other-platforms

Participation

  • [ ] I am willing to submit a pull request for this issue.

Forked On 21 Aug 2022 at 06:45:12

Soluml

Anecdotal, but I'm on WSL 2 and haven't had any issues using npm and Node 16. I've had other issues with Node 18 on WSL 2 though.

Commented On 21 Aug 2022 at 06:45:12
Issue Comment

Soluml

Vite plugin works differently for CSS files in `astro dev` vs. `astro build`

What version of astro are you using?

1.0.6

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Windows (WSL)

Describe the Bug

I've written a plugin that works with Vite in a similar vein to postcss-modules. The stylesheet is processed and JSON is returned to the component in place of the CSS file. However, astro build does not run the plugin for CSS/SCSS files as expected during the build process.

I've attached a couple of images and a very small reproducible demo using a very scaled back plugin that simply replaces .example.css files with a string for component consumption.

astro.config.mjs

image

astro dev

image

astro build

image

Link to Minimal Reproducible Example

https://github.com/soluml/astro-bug-css-plugin

Participation

  • [X] I am willing to submit a pull request for this issue.

Forked On 21 Aug 2022 at 06:41:31

Soluml

Thanks for taking a look! I've been experimenting with the CSS build side of things off an on since the 1.0 release and in my attempts to work around the above issue I found that disabling the vite.build.cssCodeSplit option also breaks all CSS in the production build for Astro (#4413).

I'm not sure if the issues are related, though it should be noted that disabling cssCodeSplitting does fix the text issue above, just breaks all CSS in production builds.

Commented On 21 Aug 2022 at 06:41:31

Soluml

Update postcss plugin

Pushed On 21 Aug 2022 at 06:16:25

Soluml

Added Plugin Comment to identify when it runs

Pushed On 18 Aug 2022 at 01:11:22
Create Branch

Soluml

Repo showing a bug with the plugin handling of CSS files

On 18 Aug 2022 at 01:04:44
Create Branch

Soluml

Description not entered by the user.

On 18 Aug 2022 at 01:04:26
Create Branch

Soluml

Repo showing a bug with the plugin handling of CSS files

On 18 Aug 2022 at 01:03:29
Issue Comment

Soluml

Between ^3.0.0-beta.22 and 4.0.0-beta.0 vite with linaria broke

Environment

I've included the environments for both cases in the following code sandboxes. The sandboxes are completely identical other than the linaria versions in package.json.

Description

When I try to use the linaria rollup plugin in 4.1.2 I get an error Cannot use 'import.meta' outside a module'.

image

Reproducible Demo

I've included two demos. The first one shows the failure case, the second one shows the success case. The issue first appears in version 4.0.0-beta.0.

Forked On 18 Aug 2022 at 02:16:13

Soluml

This is hitting me as well. Was using the the v3 Beta in an Astro site and I'm currently unable to upgrade.

Commented On 18 Aug 2022 at 02:16:13

Soluml

module fix

Pushed On 13 Aug 2022 at 07:51:36

Soluml

Fix saver

Pushed On 13 Aug 2022 at 07:16:59

Soluml

bump version

Pushed On 13 Aug 2022 at 07:05:36

Soluml

add a getter

Pushed On 13 Aug 2022 at 07:05:36

Soluml

fix export

Pushed On 13 Aug 2022 at 07:00:16

Soluml

audit

Pushed On 13 Aug 2022 at 06:54:39

Soluml

a save function for the cache

Pushed On 13 Aug 2022 at 06:54:39

Soluml

bump version

Pushed On 13 Aug 2022 at 06:54:39

Soluml

fix version

Pushed On 07 Aug 2022 at 07:12:48

Soluml

0.3.7

Pushed On 07 Aug 2022 at 07:12:48

Soluml

Bump terser

Pushed On 07 Aug 2022 at 07:11:18

Soluml

Bump mocha

Pushed On 07 Aug 2022 at 07:11:18

Soluml

started

Started On 17 Jul 2022 at 02:36:15