board-game-engine-react 0.0.9 → 0.0.10

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": "board-game-engine-react",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "React library for using board-game-engine",
5
5
  "main": "dist/board-game-engine-react.js",
6
6
  "scripts": {
package/rollup.config.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import babel from '@rollup/plugin-babel'
2
2
  import { terser } from 'rollup-plugin-terser'
3
3
  import scss from 'rollup-plugin-scss'
4
- import resolve from 'rollup-plugin-node-resolve'
4
+ import resolve from '@rollup/plugin-node-resolve'
5
+ import commonjs from '@rollup/plugin-commonjs'
5
6
 
6
7
  const config = [
7
8
  {
@@ -13,10 +14,9 @@ const config = [
13
14
  name: 'BoardGameEngineReact'
14
15
  },
15
16
  plugins: [
16
- resolve({
17
- }),
18
- babel({
19
- }),
17
+ resolve(),
18
+ commonjs({ include: /node_modules/ }),
19
+ babel(),
20
20
  scss()
21
21
  ]
22
22
  },
@@ -29,12 +29,12 @@ const config = [
29
29
  name: 'BoardGameEngineReact'
30
30
  },
31
31
  plugins: [
32
- resolve({
33
- }),
34
- babel({
35
- }),
32
+ resolve(),
33
+ commonjs({ include: /node_modules/ }),
34
+ babel(),
36
35
  scss({ outputStyle: 'compressed' }),
37
36
  terser()
37
+
38
38
  ]
39
39
  }
40
40
  ]
@@ -1,5 +1,6 @@
1
1
  import { useEffect, useReducer, useState } from 'react'
2
2
  import * as BoardGameEngine from 'board-game-engine'
3
+ console.log('BoardGameEngine', BoardGameEngine)
3
4
  const Client = BoardGameEngine.Client
4
5
 
5
6