Skip to content

Commit

Permalink
fix: remove comments in minified bundle @W-5320429 (#599)
Browse files Browse the repository at this point in the history
## Details
Add babel configuration 
```js 
comments: false 
```

into the minified configuration

## Does this PR introduce a breaking change?

* [ ] Yes
* [X] No
  • Loading branch information
apapko authored and diervo committed Aug 18, 2018
1 parent 38fe207 commit 46d65c0
Show file tree
Hide file tree
Showing 17 changed files with 150 additions and 307 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:host {
color: blue;
}

/* css comment */

x-comments {
color: green;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<template>
<!-- html comment -->
<h1>{myname}</h1>
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { LightningElement, track } from 'lwc';

export default class Comments extends LightningElement {
// javascript comment
@track
myname = 'default value';
}
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
define("x-class_and_template",["lwc"],function(a){function b(a){const{h:b}=a;return[b("section",{key:1},[])]}class c extends a.Element{constructor(){super(),this.t=1,this.counter=0}render(){return b}}return c.style=b.style,c});
define("x-class_and_template",["lwc"],function(a){function b(a){const{h:b}=a;return[b("section",{key:1},[])]}class c extends a.LightningElement{constructor(){super(),this.t=1,this.counter=0}render(){return b}}return c});

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 46d65c0

Please sign in to comment.