Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.

Commit e09d6d3

Browse files
author
DongWoo Kim
committed
chore: change libraryTarget to commonjs2
1 parent 95a6341 commit e09d6d3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

webpack.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
const HtmlWebpackPlugin = require('html-webpack-plugin');
21
const path = require('path');
32

43
const config = {
54
entry: './src/index.js',
65
output: {
76
filename: 'toastui-react-grid.js',
8-
path: path.resolve(__dirname, 'dist')
7+
path: path.resolve(__dirname, 'dist'),
8+
libraryTarget: 'commonjs2'
99
},
1010
externals: {
1111
'tui-grid': {
1212
commonjs: 'tui-grid',
13-
commonjs2: 'tui-grid',
14-
amd: 'tui-grid',
15-
root: ['tui', 'Grid']
13+
commonjs2: 'tui-grid'
14+
},
15+
react: {
16+
commonjs: 'react',
17+
commonjs2: 'react'
1618
}
1719
},
1820
module: {
@@ -31,6 +33,4 @@ const config = {
3133
}
3234
};
3335

34-
module.exports = () => {
35-
return config;
36-
};
36+
module.exports = () => config;

0 commit comments

Comments
 (0)