Skip to content

Commit

Permalink
#89 - Remove reference vue-runtime-helpers es format
Browse files Browse the repository at this point in the history
  • Loading branch information
dangvanthanh committed Mar 7, 2019
1 parent 081ccce commit a2cc90b
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 15 deletions.
58 changes: 50 additions & 8 deletions dist/vue-ckeditor2.cjs.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
'use strict';
function _interopDefault(t) {
return t && 'object' == typeof t && 'default' in t ? t.default : t;
}
var __vue_normalize__ = _interopDefault(
require('vue-runtime-helpers/dist/normalize-component.js')
),
inc = new Date().getTime(),
var inc = new Date().getTime(),
script = {
name: 'VueCkeditor',
props: {
Expand Down Expand Up @@ -123,6 +117,54 @@ var __vue_normalize__ = _interopDefault(
}
}
};
function normalizeComponent(t, e, n, i, o, s, a, c, r, d) {
'boolean' != typeof a && ((r = c), (c = a), (a = !1));
var u,
_ = 'function' == typeof n ? n.options : n;
if (
(t &&
t.render &&
((_.render = t.render),
(_.staticRenderFns = t.staticRenderFns),
(_._compiled = !0),
o && (_.functional = !0)),
i && (_._scopeId = i),
s
? ((u = function(t) {
(t =
t ||
(this.$vnode && this.$vnode.ssrContext) ||
(this.parent &&
this.parent.$vnode &&
this.parent.$vnode.ssrContext)) ||
'undefined' == typeof __VUE_SSR_CONTEXT__ ||
(t = __VUE_SSR_CONTEXT__),
e && e.call(this, r(t)),
t && t._registeredComponents && t._registeredComponents.add(s);
}),
(_._ssrRegister = u))
: e &&
(u = a
? function() {
e.call(this, d(this.$root.$options.shadowRoot));
}
: function(t) {
e.call(this, c(t));
}),
u)
)
if (_.functional) {
var l = _.render;
_.render = function(t, e) {
return u.call(e), l(t, e);
};
} else {
var h = _.beforeCreate;
_.beforeCreate = h ? [].concat(h, u) : [u];
}
return n;
}
var normalizeComponent_1 = normalizeComponent;
const __vue_script__ = script;
var __vue_render__ = function() {
var t = this.$createElement,
Expand All @@ -145,7 +187,7 @@ const __vue_inject_styles__ = void 0,
__vue_scope_id__ = void 0,
__vue_module_identifier__ = void 0,
__vue_is_functional_template__ = !1;
var VueCkeditor = __vue_normalize__(
var VueCkeditor = normalizeComponent_1(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
void 0,
__vue_script__,
Expand Down
55 changes: 50 additions & 5 deletions dist/vue-ckeditor2.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,51 @@
import t from 'vue-runtime-helpers/dist/normalize-component.js';
var n = new Date().getTime();
export default t(
var t = new Date().getTime();
export default (function(t, n, e, i, s, o, a, c, r, d) {
'boolean' != typeof a && ((r = c), (c = a), (a = !1));
var u,
h = 'function' == typeof e ? e.options : e;
if (
(t &&
t.render &&
((h.render = t.render),
(h.staticRenderFns = t.staticRenderFns),
(h._compiled = !0),
s && (h.functional = !0)),
i && (h._scopeId = i),
o
? ((u = function(t) {
(t =
t ||
(this.$vnode && this.$vnode.ssrContext) ||
(this.parent &&
this.parent.$vnode &&
this.parent.$vnode.ssrContext)) ||
'undefined' == typeof __VUE_SSR_CONTEXT__ ||
(t = __VUE_SSR_CONTEXT__),
n && n.call(this, r(t)),
t && t._registeredComponents && t._registeredComponents.add(o);
}),
(h._ssrRegister = u))
: n &&
(u = a
? function() {
n.call(this, d(this.$root.$options.shadowRoot));
}
: function(t) {
n.call(this, c(t));
}),
u)
)
if (h.functional) {
var f = h.render;
h.render = function(t, n) {
return u.call(n), f(t, n);
};
} else {
var l = h.beforeCreate;
h.beforeCreate = l ? [].concat(l, u) : [u];
}
return e;
})(
{
render: function() {
var t = this.$createElement,
Expand All @@ -27,14 +72,14 @@ export default t(
name: {
type: String,
default: function() {
return 'editor-'.concat(++n);
return 'editor-'.concat(++t);
}
},
value: { type: String },
id: {
type: String,
default: function() {
return 'editor-'.concat(n);
return 'editor-'.concat(t);
}
},
types: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "vue-ckeditor2",
"version": "2.1.2",
"version": "2.1.3",
"description": "Ckeditor 4 using with Vue.js",
"author": "Dang Van Thanh <dangvanthanh@dangthanh.org>",
"main": "dist/vue-ckeditor2.cjs.js",
"module": "dist/vue-ckeditor2.esm.js",
"unpkg": "dist/vue-ckeditor2.umd.js",
"scripts": {
"build": "bili src/index.js"
"build": "bili src/index.js --bundle-node-modules"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit a2cc90b

Please sign in to comment.