Open pws019 opened 6 years ago
I've never used babel, but why is the x-tag cdn commented out?
@KipOmaha because I npm install x-tag.Then I don't need link script.Just import the x-tag in Js
import {xtag, XTagElement} from 'x-tag';
But when I use webpack bundle the x-tag, as mentioned above. If I don't bundle the x-tag, I meet anothre issue ->
Class constructor XXX cannot be invoked without 'new'
Of course,when I don't use Babel and write native code,then It's ok. But I don't how can I make it work with webpack+babel well...
try the raw source ? So you don't run into conflicting polys?
when I use webpack&babel, the result show "XTagElement is not defined" ... tip:x-tag-version:2.0.9-alpha
.babelrc
webpack
index.js
index.html
the result:![image](https://user-images.githubusercontent.com/15248275/39314279-7a05c77a-49a6-11e8-9e2a-f604f5b2bdb8.png)
how can I fix the problem?