Skip to content

Conversation

mwistrand
Copy link
Contributor

Resolves #7. Requires a patch release of webpack-contrib, which this PR makes up for by directly adding dependencies to package.json and test-app/package.json (these will be removed prior to merging).

Adds the ExternalLoaderPlugin from @dojo/webpack-contrib, allowing external dependencies that cannot be loaded with webpack to be injected from outside the build. There is a nearly identical implementation in @dojo/cli-build-webpack, but with two notable differences:

@codecov
Copy link

codecov bot commented Jan 12, 2018

Codecov Report

Merging #31 into master will decrease coverage by 1.74%.
The diff coverage is 6.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
- Coverage   59.17%   57.42%   -1.75%     
==========================================
  Files           8        8              
  Lines         436      451      +15     
  Branches       93      101       +8     
==========================================
+ Hits          258      259       +1     
- Misses        178      192      +14
Impacted Files Coverage Δ
src/base.config.ts 25.66% <6.66%> (-2.91%) ⬇️

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 481f87c...dc3bbc4. Read the comment docs.

@dylans
Copy link
Member

dylans commented Mar 19, 2018

Documentation such as https://github.com/dojo/cli-build-webpack#interop-with-external-libraries should probably be updated in this PR when this change is landed.

@agubler
Copy link
Member

agubler commented Jul 4, 2018

@maier49 @mwistrand There are two open PRs for supporting externals, this and #98 - Do you think we could consolidate them down into a single PR and make any requested changes in the reviews?

@mwistrand
Copy link
Contributor Author

Closing in favor of #98.

@mwistrand mwistrand closed this Jul 9, 2018
@mwistrand mwistrand deleted the 7-external-loader-plugin branch August 13, 2018 16:43
@mwistrand mwistrand restored the 7-external-loader-plugin branch August 14, 2018 16:29
@mwistrand mwistrand reopened this Aug 14, 2018
@jsf-clabot
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Matt Wistrand seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

@mwistrand mwistrand force-pushed the 7-external-loader-plugin branch 2 times, most recently from 41b56bb to 1e3dd3d Compare August 14, 2018 16:45
- Add ExternalLoaderPlugin from webpack-contrib
- TEMP: Add webpack-contrib deps to package.json and
  test-app/package.json
- Update unix fixtures
- Reset package-lock.json so it does not throw errors on install
@mwistrand mwistrand force-pushed the 7-external-loader-plugin branch from 1e3dd3d to 2ac549d Compare August 14, 2018 16:50
- Remove unneeded node modules
- Add `externals` to `test-app/.dojorc-pwa`
package.json Outdated
@@ -112,6 +112,7 @@
"express": "4.16.2",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.5",
"html-webpack-include-assets-plugin": "1.0.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. I thought I deleted that.

@mwistrand
Copy link
Contributor Author

I have now verified the most recent changes with a local sandbox app on both Windows and macOS.

@mwistrand mwistrand merged commit 95bd693 into dojo:master Aug 16, 2018
@mwistrand mwistrand deleted the 7-external-loader-plugin branch August 7, 2019 13:16
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.

5 participants