-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(optimizer): minification breaks imports and exports (#122)
fixes #119
- Loading branch information
1 parent
f8394c6
commit b4c8b20
Showing
6 changed files
with
169 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/optimizer/core/src/snapshots/qwik_core__test__issue_118.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
source: src/optimizer/core/src/test.rs | ||
expression: output | ||
|
||
--- | ||
==INPUT== | ||
|
||
|
||
import {qHook, h} from '@builderio/qwik'; | ||
import thing from 'lib'; | ||
import * as all from 'lib'; | ||
import {s as se} from 'lib'; | ||
|
||
|
||
export const Header = qComponent({ | ||
onMount: <div/>, | ||
onRender: qHook(() => <Footer>{thing}{all()}{se()}</Footer>) | ||
}); | ||
|
||
export const Footer = qComponent(); | ||
|
||
|
||
|
||
============================= project/test.js == | ||
|
||
import{qHook as a,h as b}from"@builderio/qwik";export const Header=/*#__PURE__*/ qComponent({onMount:/*#__PURE__*/ b("div",null),onRender:a(()=>import("../entry_hooks"),"Header_onRender")});export const Footer=/*#__PURE__*/ qComponent(); | ||
============================= h_test_header_onrender.js == | ||
|
||
import{Footer as a}from"./project/test";import*as b from"lib";import{h as c}from"@builderio/qwik";import{qHook as d}from"@builderio/qwik";import{s as e}from"lib";import f from"lib";export const Header_onRender=/*#__PURE__*/ d(()=>c(a,null,f,b(),e())); | ||
============================= entry_hooks.js (ENTRY POINT)== | ||
|
||
export { Header_onRender } from "./h_test_header_onrender"; | ||
|
||
== HOOKS == | ||
|
||
[ | ||
{ | ||
"origin": "project/test.tsx", | ||
"name": "Header_onRender", | ||
"entry": "entry_hooks", | ||
"canonicalFilename": "h_test_header_onrender", | ||
"localDecl": [], | ||
"localIdents": [ | ||
"Footer", | ||
"all", | ||
"h", | ||
"qHook", | ||
"se", | ||
"thing" | ||
] | ||
} | ||
] | ||
|
||
== DIAGNOSTICS == | ||
|
||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.