Skip to content

Commit bebacee

Browse files
committed
fix: workaround workshop.runtime.ts css import regression
1 parent bad0dc0 commit bebacee

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

package.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ export default defineConfig({
77
import: './dist/cli.js',
88
runtime: 'node',
99
},
10+
{
11+
// Working around workshop.runtime.ts files importing `defineRuntime` that points to a file that has CSS imports, which nodejs doesn't support
12+
source: './exports/index.ts',
13+
import: './dist/index.node.js',
14+
runtime: 'node',
15+
},
1016
],
1117
extract: {
1218
rules: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"exports": {
2828
".": {
2929
"source": "./exports/index.ts",
30+
"node": {"default": "./dist/index.node.js"},
3031
"default": "./dist/index.js"
3132
},
3233
"./plugin-a11y": {

0 commit comments

Comments
 (0)