Skip to content

Commit c4ba594

Browse files
build(fix broken building mechanism):
1 parent 20587a0 commit c4ba594

File tree

21 files changed

+68
-74
lines changed

21 files changed

+68
-74
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
2323
"prebuild": "rimraf dist",
2424
"build:demo": "npm run clean:demo && cross-env NODE_ENV=production webpack --config webpack.config.demo.js -p --bail",
25-
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
25+
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
2626
"start": "rollup -c rollup.config.ts -w",
2727
"start:demo": "webpack-dev-server --development src/demo --config webpack.config.demo.js",
2828
"test": "jest",

rollup.config.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,23 @@ const libraryName = 'react-virtualized-table'
1313
export default {
1414
input: `src/${libraryName}.ts`,
1515
output: [
16-
{ file: pkg.main, name: camelCase(libraryName), format: 'umd' },
17-
{ file: pkg.module, format: 'es' },
16+
{
17+
file: pkg.main,
18+
name: camelCase(libraryName),
19+
format: 'umd',
20+
globals: {
21+
react: 'React',
22+
'react-dom': 'ReactDOM',
23+
lodash: "_",
24+
'react-virtualized': "reactVirtualized"
25+
},
26+
sourcemap: true
27+
},
28+
{ file: pkg.module, format: 'es', sourcemap: true },
1829
],
1930

20-
sourcemap: true,
21-
2231
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
2332
external: ['react', 'react-dom', 'lodash', 'react-virtualized'],
24-
25-
globals: {
26-
react: 'React',
27-
'react-dom': 'ReactDOM'
28-
},
2933

3034
watch: {
3135
include: 'src/**',

src/checkbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from "react"
1+
import React from "react"
22

33
import "./style.scss"
44

src/demo/demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import React from 'react'
22

33
import * as V from 'src/react-virtualized-table';
44

src/demo/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as React from 'react'
2-
import * as ReactDOM from "react-dom";
1+
import React from 'react'
2+
import ReactDOM from "react-dom";
33

44
import Demo from 'src/demo/demo'
55

src/demo/jumbotron/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import React from 'react'
22

33
import Icon from 'src/icon'
44

src/demo/mainTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import React from 'react'
22

33
import * as V from 'src/react-virtualized-table';
44

src/demo/navbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import React from 'react'
22

33
import Icon from 'src/icon'
44

src/demo/sidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import React from 'react'
22

33
import Table from 'src/demo/mainTable'
44

src/demo/smallerTables/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as React from 'react'
1+
import React from 'react'
22

33
import * as V from 'src/react-virtualized-table';
44

0 commit comments

Comments
 (0)