File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ demo /src /external-helpers.js
Original file line number Diff line number Diff line change @@ -20,3 +20,7 @@ typings/
2020lib /
2121es /
2222umd /
23+
24+ # babel external helpers
25+ #
26+ demo /src /external-helpers.js
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
2+ const { writeFileSync } = require ( 'fs' ) ;
23const webpack = require ( 'webpack' ) ;
4+ const babel = require ( 'babel-core' ) ;
5+
6+ writeFileSync (
7+ path . resolve ( __dirname , 'src/external-helpers.js' ) ,
8+ babel . buildExternalHelpers ( ) ,
9+ ) ;
310
411module . exports = {
512 devtool : 'eval' ,
@@ -8,7 +15,8 @@ module.exports = {
815 'webpack-dev-server/client?http://localhost:3000' ,
916 'webpack/hot/only-dev-server' ,
1017 'babel-polyfill' ,
11- './demo/src/index.js' ,
18+ path . resolve ( __dirname , 'src/external-helpers.js' ) ,
19+ path . resolve ( __dirname , 'src/index.js' ) ,
1220 ] ,
1321 output : {
1422 path : path . join ( __dirname , 'static' ) ,
You can’t perform that action at this time.
0 commit comments