Skip to content

refactor: Enable missing css check and test#7563

Closed
vakrilov wants to merge 9 commits into
releasefrom
return-missing-css-errors
Closed

refactor: Enable missing css check and test#7563
vakrilov wants to merge 9 commits into
releasefrom
return-missing-css-errors

Conversation

@vakrilov

Copy link
Copy Markdown
Contributor

Enable missing CSS check and that were disabled in #7499 and #7501

@cla-bot cla-bot Bot added the cla: yes label Jul 22, 2019
@vakrilov vakrilov requested review from MartoYankov and vchimev July 22, 2019 10:48
@vakrilov vakrilov force-pushed the return-missing-css-errors branch from 95aaa3d to 087671f Compare July 23, 2019 07:36
Comment thread e2e/file-qualifiers/package.json Outdated
Comment thread tns-core-modules/module-name-resolver/non-bundle-workflow-compat.ts
@@ -1,5 +1,5 @@
// Require globals first so that snapshot takes __extends function.
require("globals");
import "../globals";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is difference here? We have this in a lot of doc files in the API reference i believe.

@vakrilov vakrilov Jul 24, 2019

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Webpack is strange and creates code for all "import" statements at the start of the module. So all the imports that are after require("globals") actually get executed before it in the generated bundle.
This happens with when modules are linked and TS is compiled by webpack.

@MartoYankov MartoYankov Jul 24, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe that's the reason we got so many circular refs with the webpack plugin for circular refs. @manoldonev

Comment thread tns-core-modules/trace/trace.ts
Comment thread tns-core-modules/ui/styling/style-scope.ts
Comment thread tns-core-modules/ui/styling/style-scope.ts
@vakrilov vakrilov closed this Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants