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

Do not compile NPMPackages which are used during testing #543

Merged
merged 4 commits into from
Jun 30, 2018

Conversation

TimvdLippe
Copy link
Contributor

By moving this enumeration from WCT to Polyserve, we can now make sure we do not compile these dependencies (they do not need it anyway).

Fixes #538

}

// scripts to be injected into the running test
export const ENVIRONMENT_SCRIPTS: NPMPackage[] = [
Copy link
Member

Choose a reason for hiding this comment

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

What if we checked for a URL parameter like ?nocompile, and have WCT add that to the URLs it injects? Maybe that separates concerns better?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oooh I like that solution. Will take a stab at that 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 to not adding more WCT-specific content directly to polyserve.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated 👍 I will update the WCT stuff accordingly in the other PR to minimize noise.

@TimvdLippe TimvdLippe force-pushed the do-not-compile-npm-packages branch from f7516a0 to 1c18a07 Compare June 28, 2018 10:32
@@ -72,6 +74,9 @@ export function babelCompile(
if (isPolyfill.test(request.url)) {
return false;
}
if (shouldNotCompile.test(request.url)) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use ('nocompile' in request.query) or similar so that nocompile doesn't have to be the first query parameter (e.g. foo&nocompile).

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, TIL. Done 👍

Copy link
Member

@aomarks aomarks left a comment

Choose a reason for hiding this comment

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

Add a changlog entry?

@TimvdLippe
Copy link
Contributor Author

@aomarks Right, I always forget that. Have to add that PR_TEMPLATE soonTM 😉

@TimvdLippe TimvdLippe merged commit e731b88 into master Jun 30, 2018
@TimvdLippe TimvdLippe deleted the do-not-compile-npm-packages branch June 30, 2018 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants