Skip to content

Conversation

@BacLuc
Copy link
Contributor

@BacLuc BacLuc commented Dec 21, 2024

frontend/pdf/print: set type to module in package.json

And switch to esm syntax for the matchingTranslationKeys eslint plugin.

Because there cannot be dashes in an identifier, the rule is now called
'matchingTranslationKeys'.

jest-serializer-vue-tjw loads the vue config with require,
and seems to expect a commonjs module.
We switched to a esm module, and now the structure is not
pluginOptions.jestSerializer,
but
default.pluginOptions.jestSerializer
-> with the added export we can support vue itself and jest-serializer-vue-tjw.

This might enable us to update vite-plugin-comlink

Fix checked in dist files in pdf/dist/

Open:

  • find out why the snapshot indentation is different now

@BacLuc BacLuc requested a review from a team December 21, 2024 15:14
@BacLuc BacLuc added the deploy! Creates a feature branch deployment for this PR label Dec 21, 2024
@github-actions
Copy link

github-actions bot commented Dec 21, 2024

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

@BacLuc BacLuc force-pushed the frontend-switch-to-module branch from ab85dfd to 56ef60d Compare December 21, 2024 17:03
@BacLuc BacLuc changed the title frontend: set type to module in package.json frontend/pdf/print: set type to module in package.json Dec 21, 2024
@BacLuc BacLuc force-pushed the frontend-switch-to-module branch 2 times, most recently from e7b9659 to e932b28 Compare December 21, 2024 17:12
@BacLuc BacLuc marked this pull request as draft December 21, 2024 17:21
@BacLuc BacLuc force-pushed the frontend-switch-to-module branch from e932b28 to 30f8c7d Compare December 22, 2024 09:55
@BacLuc
Copy link
Contributor Author

BacLuc commented Dec 22, 2024

And switch to esm syntax for the matchingTranslationKeys eslint plugin.

Because there cannot be dashes in an identifier, the rule is now called
'matchingTranslationKeys'.

jest-serializer-vue-tjw loads the vue config with require,
and seems to expect a commonjs module.
We switched to a esm module, and now the structure is not
pluginOptions.jestSerializer,
but
default.pluginOptions.jestSerializer
-> with the added export we can support vue itself and jest-serializer-vue-tjw.

This might enable us to update vite-plugin-comlink
- ecamp#6220
And might help with
- ecamp#6038

Fix checked in dist files in pdf/dist/
@BacLuc BacLuc force-pushed the frontend-switch-to-module branch from 30f8c7d to b6142f4 Compare December 22, 2024 10:16
@BacLuc BacLuc marked this pull request as ready for review December 22, 2024 10:27
@BacLuc BacLuc requested a review from a team December 31, 2024 12:06
@BacLuc BacLuc added this pull request to the merge queue Jan 14, 2025
Merged via the queue into ecamp:devel with commit da7cc45 Jan 14, 2025
31 checks passed
@BacLuc BacLuc deleted the frontend-switch-to-module branch January 14, 2025 19:24
@BacLuc BacLuc mentioned this pull request Jan 14, 2025
@carlobeltrame carlobeltrame mentioned this pull request Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy! Creates a feature branch deployment for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants