Skip to content

Commit

Permalink
fix(repl): correct import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored and shairez committed Jul 26, 2024
1 parent bc699c9 commit 155d1ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"cli.validate": "tsm scripts/validate-cli.ts",
"commit": "git-cz",
"deps": "corepack pnpm upgrade -i -r --latest && syncpack fix-mismatches && corepack pnpm dedupe",
"docs.dev": "cd packages/docs && pnpm dev",
"docs.dev": "cd packages/docs && pnpm build.repl-sw && pnpm dev",
"docs.preview": "cd packages/docs && pnpm preview",
"docs.sync": "tsm scripts/docs_sync/index.ts && pnpm fmt",
"eslint.update": "tsm scripts/eslint-docs.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/docs/src/repl/monaco.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ export const addQwikLibs = async (version: string) => {
const loadDeps = async (qwikVersion: string) => {
const isDev = qwikVersion.includes('dev');
const v = qwikVersion.split('-')[0].split('.').map(Number);
const prefix = v[0] >= 1 && v[1] >= 7 && v[2] >= (isDev ? 1 : 2) ? '/dist/' : '/';
const prefix =
qwikVersion === 'bundled' || (v[0] >= 1 && v[1] >= 7 && v[2] >= (isDev ? 1 : 2))
? '/dist/'
: '/';
const deps: NodeModuleDep[] = [
// qwik
{
Expand Down

0 comments on commit 155d1ba

Please sign in to comment.