-
Notifications
You must be signed in to change notification settings - Fork 392
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
feat(compiler): raptor on platform #298
Conversation
* wip: module import locations * wip: move import locations into metadata * wip: rename import locations * wip: use common location class in import locations * wip: change regex and token retrieval
* feat(compiler): use real compiler version during build
* fix(compiler): module resolver fails to import custom template
Benchmark resultsBase commit: lwc-engine-benchmark
|
Benchmark resultsBase commit: lwc-engine-benchmark
|
Benchmark resultsBase commit: |
1 similar comment
Benchmark resultsBase commit: |
Benchmark resultsBase commit: lwc-engine-benchmark
|
* wip: merge master * refactor(compiler): add proper type to css transformer
Benchmark resultsBase commit: lwc-engine-benchmark
|
Benchmark resultsBase commit: lwc-engine-benchmark
|
"author": "", | ||
"license": "ISC", | ||
"scripts": { | ||
"clean": "rm -rf dist", | ||
"build": "echo 'Building compiler...' && DIR=`pwd` && cd ../../ && tsc -p $DIR/tsconfig.json", | ||
"build:all": "", | ||
"build:umd": "webpack --progress", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apapko removing build:umd
breaks yarn build:compiler
script in the base package.json https://github.com/salesforce/lwc/blob/master/package.json#L15
Details
This PR includes several enhancements to the open source compiler to allow for source code diagnostics and cleaner integration with platform compiler. The open source compiler will be consumed by platform-compiler for transformation and bundling invocation. Furthermore, as part of the effort to minimize compiler maintenance and code/feature duplication, platform-compiler, which in-itself consumes open source compiler, will be now used by both Aura open source and core in the form of a jar ( maven dependency ).
Some details on the changes:
Few remaining TODOS:
Does this PR introduce a breaking change?
Compiler interface has changed. Aura will now be using platform compiler instead - thus invocation API must be change in Aura to satisfy platform compiler interface - tracked separately.