mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Document DatePicker
usage with a Rollup set-up (#990)
* chore(example): add inlineDynamicImports: true * docs(date-picker): add note for using DatePicker with Rollup Closes #986
This commit is contained in:
parent
502f9379fa
commit
01a548fee0
2 changed files with 11 additions and 1 deletions
|
@ -3,7 +3,7 @@ components: ["DatePicker", "DatePickerInput", "DatePickerSkeleton"]
|
||||||
---
|
---
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { DatePicker, DatePickerSkeleton, DatePickerInput } from "carbon-components-svelte";
|
import { DatePicker, DatePickerSkeleton, DatePickerInput, InlineNotification } from "carbon-components-svelte";
|
||||||
import Preview from "../../components/Preview.svelte";
|
import Preview from "../../components/Preview.svelte";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -63,6 +63,15 @@ components: ["DatePicker", "DatePickerInput", "DatePickerSkeleton"]
|
||||||
|
|
||||||
### Single
|
### Single
|
||||||
|
|
||||||
|
<InlineNotification
|
||||||
|
svx-ignore
|
||||||
|
lowContrast
|
||||||
|
title="Note:"
|
||||||
|
subtitle="If using Rollup, specify `inlineDynamicImports: true` in your `rollup.config.js`."
|
||||||
|
kind="info"
|
||||||
|
hideCloseButton
|
||||||
|
/>
|
||||||
|
|
||||||
<FileSource src="/framed/DatePicker/DatePickerSingle" />
|
<FileSource src="/framed/DatePicker/DatePickerSingle" />
|
||||||
|
|
||||||
### Range
|
### Range
|
||||||
|
|
|
@ -9,6 +9,7 @@ const production = !process.env.ROLLUP_WATCH;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "src/index.js",
|
input: "src/index.js",
|
||||||
|
inlineDynamicImports: true,
|
||||||
output: {
|
output: {
|
||||||
sourcemap: !production,
|
sourcemap: !production,
|
||||||
format: "iife",
|
format: "iife",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue