Importing @web/test-runner specific paths does not work #1732
-
The web test runner server have "magic" paths, for example Trying to use
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I've tried to work around it by creating a snowpack plugin to transform these imports but it seems like the snowpack plugins can't transform files in |
Beta Was this translation helpful? Give feedback.
-
I found a solution, setting it as an external package in the snowpack config works:
I'll submit a PR to have |
Beta Was this translation helpful? Give feedback.
-
There is code that guards against this in https://github.com/snowpackjs/snowpack/blob/main/plugins/web-test-runner-plugin/plugin.js#L36 I wonder why it's not working here? |
Beta Was this translation helpful? Give feedback.
I found a solution, setting it as an external package in the snowpack config works:
I'll submit a PR to have
@snowpack/web-test-runner-plugin
do that automatically