@@ -239,6 +239,11 @@ Note that when importing individual components, any component aliases will **not
239
239
</p >
240
240
</div >
241
241
242
+ Do not use the Nuxt module If you want to import individual BootstrapVue components into _ specific_
243
+ pages and/or components of your Nuxt app. Instead follow the [ module bundlers] ( #using-module-bundlers )
244
+ section above as well as the
245
+ [ selective import] ( #selective-component-and-directive-inclusion-in-module-bundlers ) sections below.
246
+
242
247
### Passing custom BootstrapVue config with Nuxt.js
243
248
244
249
If you need to pass a custom
@@ -256,25 +261,6 @@ module.exports = {
256
261
}
257
262
```
258
263
259
- ### Using pretranspiled version of BootstrapVue for Nuxt.js
260
-
261
- Nuxt.js module uses the precompiled version of BootstrapVue (` es/ ` ) for faster development builds
262
- and the source (` src/ ` ) of BootstrapVue for higher quality production builds.
263
-
264
- You can override this option using ` usePretranspiled ` option. Setting to ` true ` uses ` es/ ` instead
265
- of ` src/ ` . By default ` usePretranspiled ` is enabled in development mode only.
266
-
267
- <div class =" alert alert-info " >
268
- <p class =" mb-0 " >
269
- <b>Note:</b> if you are also importing individual components, directives or plugins
270
- <em>within</em> your Nuxt app as well as via the tree-shaking options above, you will want to
271
- set the <code>usePretranspiled</code> option to match the directory you are importing from
272
- (i.e. use <code>true</code> if importing from <code>bootstrap-vue/es</code> or
273
- <code>false</code> if importing from <code>bootstrap-vue/src</code>). Otherwise, you may end
274
- up with a larger bundle size due to code duplication.
275
- </p >
276
- </div >
277
-
278
264
## Vue CLI 2
279
265
280
266
<span class =" badge badge-warning small " >DEPRECATED</span > Use [ Vue CLI 3] ( #vue-cli-3 ) instead.
0 commit comments