+
+
+
diff --git a/src/entry.esm.js b/src/entry.esm.js
new file mode 100644
index 0000000..a0cfa1c
--- /dev/null
+++ b/src/entry.esm.js
@@ -0,0 +1,21 @@
+
+// Import vue component
+import component from '@/bootstrap-vue-timeline.vue';
+
+// Default export is installable instance of component.
+// IIFE injects install function into component, allowing component
+// to be registered via Vue.use() as well as Vue.component(),
+export default /*#__PURE__*/(() => {
+ // Get component instance
+ const installable = component;
+
+ // Attach install function executed by Vue.use()
+ installable.install = (Vue) => {
+ Vue.component('BootstrapVueTimeline', installable);
+ };
+ return installable;
+})();
+
+// It's possible to expose named exports when writing components that can
+// also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo';
+// export const RollupDemoDirective = directive;
diff --git a/src/entry.js b/src/entry.js
new file mode 100644
index 0000000..4cf0526
--- /dev/null
+++ b/src/entry.js
@@ -0,0 +1,11 @@
+// iife/cjs usage extends esm default export - so import it all
+import component, * as namedExports from '@/entry.esm';
+
+// Attach named exports directly to component. IIFE/CJS will
+// only expose one global var, with named exports exposed as properties of
+// that global var (eg. plugin.namedExport)
+Object.entries(namedExports).forEach(([exportName, exported]) => {
+ if (exportName !== 'default') component[exportName] = exported;
+});
+
+export default component;