@dfosco/storyboard-react 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfosco/storyboard-react",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@dfosco/storyboard-core": "*",
@@ -107,6 +107,14 @@ export default function storyboardDataPlugin() {
107
107
  name: 'storyboard-data',
108
108
  enforce: 'pre',
109
109
 
110
+ config() {
111
+ return {
112
+ optimizeDeps: {
113
+ exclude: ['@dfosco/storyboard-react'],
114
+ },
115
+ }
116
+ },
117
+
110
118
  configResolved(config) {
111
119
  root = config.root
112
120
  },
@@ -47,6 +47,12 @@ describe('storyboardDataPlugin', () => {
47
47
  expect(plugin.enforce).toBe('pre')
48
48
  })
49
49
 
50
+ it('config() excludes @dfosco/storyboard-react from optimizeDeps', () => {
51
+ const plugin = storyboardDataPlugin()
52
+ const config = plugin.config()
53
+ expect(config.optimizeDeps.exclude).toContain('@dfosco/storyboard-react')
54
+ })
55
+
50
56
  it("resolveId returns resolved ID for 'virtual:storyboard-data-index'", () => {
51
57
  const plugin = createPlugin()
52
58
  expect(plugin.resolveId('virtual:storyboard-data-index')).toBe(RESOLVED_ID)