bugfix: MD build broken - shortid
This commit is contained in:
parent
7caf336240
commit
5eaf7dbe00
|
@ -1,6 +1,7 @@
|
|||
import svelte from "rollup-plugin-svelte"
|
||||
import postcss from "rollup-plugin-postcss"
|
||||
import resolve from "rollup-plugin-node-resolve"
|
||||
import commonjs from "rollup-plugin-commonjs"
|
||||
|
||||
const postcssOptions = () => ({
|
||||
extensions: [".scss", ".sass"],
|
||||
|
@ -16,6 +17,10 @@ const postcssOptions = () => ({
|
|||
],
|
||||
})
|
||||
|
||||
const coreExternal = [
|
||||
"shortid",
|
||||
]
|
||||
|
||||
export default {
|
||||
input: "src/index.js",
|
||||
output: [
|
||||
|
@ -30,7 +35,18 @@ export default {
|
|||
svelte({
|
||||
hydratable: true,
|
||||
}),
|
||||
resolve(),
|
||||
resolve({
|
||||
preferBuiltins: true,
|
||||
browser: true,
|
||||
dedupe: importee => {
|
||||
return coreExternal.includes(importee)
|
||||
},
|
||||
}),
|
||||
commonjs({
|
||||
namedExports: {
|
||||
shortid: ["generate"],
|
||||
},
|
||||
}),
|
||||
postcss(postcssOptions()),
|
||||
],
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import { Radiobutton } from "../Radiobutton"
|
||||
import { Checkbox } from "../Checkbox"
|
||||
import ClassBuilder from "../ClassBuilder.js"
|
||||
import shortid from "shortid"
|
||||
import { generate } from "shortid"
|
||||
|
||||
const cb = new ClassBuilder("list-item")
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
|||
let role = "option"
|
||||
|
||||
onMount(() => {
|
||||
_id = shortid.generate()
|
||||
_id = generate()
|
||||
|
||||
selectedItems = _bb.getContext("BBMD:list:selectItemStore")
|
||||
|
||||
|
|
Loading…
Reference in New Issue