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

Use registry transformer #79

Merged
merged 7 commits into from
Mar 23, 2018
Merged

Conversation

agubler
Copy link
Member

@agubler agubler commented Mar 23, 2018

Type: feature

Description:

Implement the registry transformer, such that the widget modules specified in bundles entry of the dojorc will automatically be added to the registry at build time. This enables configuration driven code splitting for applications.

@codecov
Copy link

codecov bot commented Mar 23, 2018

Codecov Report

Merging #79 into master will decrease coverage by 1.16%.
The diff coverage is 14.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
- Coverage   68.84%   67.68%   -1.17%     
==========================================
  Files           8        8              
  Lines         321      328       +7     
  Branches       55       57       +2     
==========================================
+ Hits          221      222       +1     
- Misses         95      101       +6     
  Partials        5        5
Impacted Files Coverage Δ
src/base.config.ts 34.84% <14.28%> (-2.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5473536...32fa495. Read the comment docs.

onlyCompileBundledFiles: true,
instance: 'dojo',
getCustomTransformers: () => ({
before: [registryTransformer(basePath, lazyModules)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be nice to only add this if we have lazyModules? not sure of the performance costs (we do not exit early from the transformer)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah that's a good suggestion.

@agubler agubler merged commit 29e90d5 into dojo:master Mar 23, 2018
@dylans dylans added this to the rc.2 milestone Mar 24, 2018
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.

3 participants