125125
126126 <aside class =" alert alert-warning my-4" >
127127 <p class =" mb-0" >
128- <b-badge variant =" warning" tag =" strong" >Deprecation Warning as of v2.0.0-rc.22 :</b-badge >
128+ <b-badge variant =" warning" tag =" strong" >CHANGED as of v2.0.0:</b-badge >
129129 Importing components, directives and plugins from
130130 <code class =" notranslate" translate =" no" >bootstrap-vue/es/*</code >
131- has been deprecated . All components, directives and plugins are now available as top-level named
131+ has been removed . All components, directives and plugins are now available as top-level named
132132 exports in the <code class =" notranslate" translate =" no" >ESM</code > and
133133 <code class =" notranslate" translate =" no" >CommonJS</code > builds. The
134- <code class =" notranslate" translate =" no" >es/</code > directory build will be removed in a future
135- release.
134+ <code class =" notranslate" translate =" no" >es/</code > directory build has been removed.
136135 </p >
137136 </aside >
138137 </section >
@@ -144,6 +143,8 @@ import kebabCase from 'lodash/kebabCase'
144143import startCase from ' lodash/startCase'
145144import AnchoredHeading from ' ./anchored-heading'
146145
146+ const importPath = ' bootstrap-vue'
147+
147148export default {
148149 name: ' BDVImportdoc' ,
149150 components: { AnchoredHeading },
@@ -212,9 +213,8 @@ export default {
212213 },
213214 directiveImportCode () {
214215 const firstDirective = this .directives [0 ]
215- const firstDirectiveImport = this .directiveImports [0 ]
216216 return [
217- ` import { ${ firstDirective} } from '${ firstDirectiveImport . importPath } '` ,
217+ ` import { ${ firstDirective} } from '${ importPath} '` ,
218218 " // Note: Vue automatically prefixes the directive name with 'v-'" ,
219219 ` Vue.directive('${ this .directiveName (firstDirective)} ', ${ firstDirective} )`
220220 ].join (' \n ' )
0 commit comments