Skip to content

Commit

Permalink
chore: fix final test
Browse files Browse the repository at this point in the history
  • Loading branch information
hkonsti committed Sep 22, 2024
1 parent 0134f5a commit 6f1113f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default defineConfig({
'./src/tweening-visualiser.ts',
'./src/node-signal.ts',
'./src/code-block.ts',
'./src/random.ts',
'./src/layout.ts',
'./src/layout-group.ts',
'./src/positioning.ts',
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/server/renderer-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function rendererPlugin(
if (id.startsWith('\x00virtual:renderer')) {
return `\
import {render} from '@revideo/renderer/lib/client/render';
import project from '${projectFile}?project';
import project from '${projectFile}';
// Read video variables
project.variables = ${variables ? `JSON.parse(\`${JSON.stringify(variables, escapeSpecialChars)}\`)` : 'project.variables'};
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin/src/partials/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ editor(await addEditorToProject(project));
/* language=typescript */
return `\
import {editor} from '${editor}';
import project from '${projects.lookup.get(name)!.url}?project';
import project from '${projects.lookup.get(name)!.url}';
import {addEditorToProject} from '@revideo/core';
editor(await addEditorToProject(project));
`;
Expand Down
5 changes: 1 addition & 4 deletions packages/vite-plugin/src/partials/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ export function projectsPlugin({
rollupOptions: {
preserveEntrySignatures: 'strict',
input: Object.fromEntries(
projects.list.map(project => [
project.name,
project.url + '?project',
]),
projects.list.map(project => [project.name, project.url]),
),
},
},
Expand Down

0 comments on commit 6f1113f

Please sign in to comment.