Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Compiler&Bundler #28

Merged
merged 247 commits into from
Jan 22, 2021
Merged

New Compiler&Bundler #28

merged 247 commits into from
Jan 22, 2021

Conversation

ije
Copy link
Member

@ije ije commented Nov 14, 2020

  • swc via wasm-pack
  • jsx
    • add __sourceFile prop in dev mode
    • resolve Link component href prop
    • resolve a to Anchor
    • resolve head to Head
    • resolve link to Link
    • resolve script to Script
    • resolve style to Style
    • React new JSX transform(Implement new jsx transform swc-project/swc#1223)
  • import/export resolve
  • sign useDeno hook
  • stable fast refresh plugin for the new compile
  • inline-style
  • bundle deps in production mode

@ije
Copy link
Member Author

ije commented Jan 21, 2021

Deno 1.7 bundler is still broken: denoland/deno#9212, It's almost done

@ije
Copy link
Member Author

ije commented Jan 21, 2021

I'm so exciting, the new compiler & bundler is finally working!
There are only 5 js files needed and ~60kb data transferred in production mode of the hello example app.

Screen Shot 2021-01-22 at 00 56 29

@soilSpoon
Copy link
Contributor

Will the deno bundler be released when it is fixed?

@ije
Copy link
Member Author

ije commented Jan 21, 2021

@soilSpoon for sure, i just added a workaround for the bundler issue. i will release a beta version this week!

@shadowtime2000
Copy link
Member

I'm so exciting, the new compiler & bundler is finally working!
There are only 5 js files needed and ~60kb data transferred in production mode of the hello example app.

Screen Shot 2021-01-22 at 00 56 29

Unbundled is not as performant, I am pretty excited that this is going to be released soon

image

@shadowtime2000
Copy link
Member

The SWC tests are failing because I think the compiler is referenced as in the folder swc when it is in the compiler folder and the Aleph tests are failing because of #92

test: remove assignment statement to location
@shadowtime2000
Copy link
Member

I think it's finally time to merge the oldest PR we have. Or do we have anything else that needs to be done... @ije

@ije
Copy link
Member Author

ije commented Jan 22, 2021

the bundler for styling and dynamic importing still have some issues, i will fix it ASAP.

@ije
Copy link
Member Author

ije commented Jan 22, 2021

but let's merge it, I will create a new pr for the styling and dynamic importing.

@ije ije marked this pull request as ready for review January 22, 2021 03:44
@ije ije merged commit 659337e into master Jan 22, 2021
@ije ije deleted the swc branch January 22, 2021 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

v0.3.0 Deno 1.7.0 incompatibility Give an Option for Bundling not work in legend Edge
5 participants