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

fix: xml parsing when input value is reported as object instead of string #7916

Merged
merged 4 commits into from Oct 9, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Oct 8, 2019

The raw-loader changed the way the modules are exported e.g they've already used ES Module export instead of CommonJS. This way, the format of modules inside bundle.js or vendor.js is changed:

Previous:

module.exports = "<Frame defaultPage=\"bundle-main-page\" id=\"root-frame\">\n</Frame>\n"; 

Current:

 __webpack_exports__["default"] = ("<Frame defaultPage=\"bundle-main-page\" id=\"root-frame1\">\n</Frame>\n");

On the other side, angular updated raw-loader to v3.1.0 in their latest minor release e.g in v8.3.0. As a result, tns test command doesn't work for newly created code shared applications.

This PR adds support for parsing xml modules exported via ES module export syntax.

Rel to: #7915

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

…instead of string

The [raw-loader](https://github.com/webpack-contrib/raw-loader/blob/6cf76b8947d34fcbe2c11fabc0a995cbf246615f/src/index.js#L18) changed the way they export modules e.g they've already used ES Module export instead of CommonJS. This way, the format of modules inside `bundle.js` or `vendor.js` is changed:
Previous:
```

```

Current:
```
 __webpack_exports__["default"] = ("<Frame defaultPage=\"bundle-main-page\" id=\"root-frame1\">\n</Frame>\n");
```

On the other side, angular updated `raw-loader` to v3.1.0 in their latest minor release e.g in v8.3.0. As a result, `tns test` command doesn't work for newly created code shared applications.

This PR adds support for parsing xml modules exported via ES module export syntax.
@cla-bot cla-bot bot added the cla: yes label Oct 8, 2019
@manoldonev manoldonev changed the title fix: fix parsing of xml files when input value is reported as object instead of string fix: xml parsing when input reported as object instead of string Oct 8, 2019
@Fatme Fatme changed the title fix: xml parsing when input reported as object instead of string fix: xml parsing when input value is reported as object instead of string Oct 8, 2019
@manoldonev
Copy link
Contributor

test tsapps ngapps

@manoldonev manoldonev merged commit a06a5f9 into master Oct 9, 2019
@manoldonev manoldonev deleted the fatme/fix-xml-parsing branch October 9, 2019 10:24
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.

None yet

3 participants