Skip to content

Commit 74cf866

Browse files
committed
Remove ES5
1 parent d996da2 commit 74cf866

File tree

4 files changed

+1
-472
lines changed

4 files changed

+1
-472
lines changed

es5/index.d.ts

-8
This file was deleted.

es5/index.js

-346
This file was deleted.

src/es5.js

-88
This file was deleted.

webpack.config.js

+1-30
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,4 @@ module.exports = [{
5757
'flexmonster': 'commonjs flexmonster',
5858
'prop-types': 'commonjs prop-types'
5959
}
60-
},
61-
{
62-
entry: './src/es5.js',
63-
output: {
64-
path: path.resolve(__dirname, 'es5'),
65-
filename: 'index.js',
66-
libraryTarget: 'commonjs2' // THIS IS THE MOST IMPORTANT LINE! :mindblow: I wasted more than 2 days until realize this was the line most important in all this guide.
67-
},
68-
module: {
69-
rules: [
70-
{
71-
test: /\.js$/,
72-
include: path.resolve(__dirname, 'src'),
73-
exclude: /(node_modules|bower_components|build)/,
74-
use: {
75-
loader: 'babel-loader',
76-
options: {
77-
presets: ['react']
78-
}
79-
}
80-
}
81-
]
82-
},
83-
externals: {
84-
'react': 'commonjs react', // this line is just to use the React dependency of our parent-testing-project instead of using our own React
85-
//'react-dom': 'commonjs react-dom',// this line is just to use the React-Dom dependency of our parent-testing-project instead of using our own React-Dom.
86-
'flexmonster': 'commonjs flexmonster',
87-
'prop-types': 'commonjs prop-types'
88-
}
89-
}];
60+
}];

0 commit comments

Comments
 (0)