Skip to content

Commit 63a2bc7

Browse files
authored
feat: vitejs support (#169)
- Compiler can generate hooks with explicit extension - Refactor optimizer internal data structures to better connect modules with their hook metadata - Refactor optimizer to emit entry files with .js extension - Rollup plugin in hook mode uses pure transform instead whole world context - Update starters to use vite and tailwindcss - Implement features in the CLI - Fix in runtime: track extension of hooks - Fix in runtime: canonicalChunk to compare hooks more reliably - Fix in runtime: useInvoke() waits for context.waitOn promise array - Fix stack trace qrl logic - Fix hostElement logic in createInvocation() - Remove integrations folder - Rename 'useStore' to 'createStore'
1 parent 29affae commit 63a2bc7

File tree

163 files changed

+3749
-3809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+3749
-3809
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ module.exports = {
2525
'no-case-declarations': 'off',
2626
'no-console': ['error', { allow: ['warn', 'error'] }],
2727
'no-only-tests/no-only-tests': 'error',
28-
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^(h|Fragment)$' }],
28+
'@typescript-eslint/no-unused-vars': ['error'],
2929
},
3030
};

integration/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

integration/architecture/architecture.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import {
2-
Fragment,
3-
h,
42
Host,
53
$,
64
component$,
@@ -10,7 +8,7 @@ import {
108
getProps,
119
useEvent,
1210
onRender$,
13-
useStore,
11+
createStore,
1412
} from '@builder.io/qwik';
1513
/* eslint no-console: ["off"] */
1614

@@ -125,7 +123,7 @@ function getCmpClass(cmp: Cmp, ...additionalClasses: string[]) {
125123
}
126124

127125
export const MonolithScrubber = component$((props: { cmp: Cmp }) => {
128-
const state = useStore({ step: 1 });
126+
const state = createStore({ step: 1 });
129127
return onRender$(() => (
130128
<>
131129
<ol>

integration/architecture/client.html

Lines changed: 0 additions & 146 deletions
This file was deleted.

integration/architecture/my-app.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.

integration/hello_server/Greeter.tsx

Lines changed: 0 additions & 45 deletions
This file was deleted.

integration/hello_server/README.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)