From 87d9a337ddaa489ff2f1fdfc37014bb2d61d1e7b Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 21 Mar 2017 14:35:26 -0700 Subject: [PATCH] [skip ci] Highlight not compiling ce-adapter --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 700e044..ad36c46 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,9 @@ elements, etc.). Here's an example: ## `custom-elements-es5-adapter.js` According to the spec, Custom Elements must be ES6 classes (https://html.spec.whatwg.org/multipage/scripting.html#custom-element-conformance). Since most projects need to support a wide range of browsers that don't necessary support ES6, it may make sense to compile your project to ES5. However, ES5-style custom element classes will **not** work with native Custom Elements because ES5-style classes cannot properly extend ES6 classes, like `HTMLElement`. -To work around this, load `custom-elements-es5-adapter.js` before declaring new Custom Elements. **The adapter must NOT be compiled.** +To work around this, load `custom-elements-es5-adapter.js` before declaring new Custom Elements. + +**The adapter must NOT be compiled.** ```html