File tree 8 files changed +848
-28
lines changed
8 files changed +848
-28
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "presets" : [
3
+ [
4
+ " @babel/preset-env" ,
5
+ {
6
+ "corejs" : 3 ,
7
+ "useBuiltIns" : " usage"
8
+ }
9
+ ],
10
+ " @babel/typescript"
11
+ ],
12
+ "plugins" : [
13
+ " @babel/proposal-class-properties"
14
+ ],
15
+ "sourceType" : " unambiguous"
16
+ }
Original file line number Diff line number Diff line change
1
+ > 0.2%
2
+ > 0.2% in US
3
+ last 2 versions
4
+ Firefox ESR
5
+ not dead
6
+ Chrome 26 # similar to PhantomJS
Original file line number Diff line number Diff line change 5
5
"description" : " " ,
6
6
"main" : " " ,
7
7
"dependencies" : {
8
+ "@babel/core" : " ^7.5.5" ,
9
+ "@babel/plugin-proposal-class-properties" : " ^7.5.5" ,
10
+ "@babel/preset-env" : " ^7.5.5" ,
11
+ "@babel/preset-typescript" : " ^7.3.3" ,
8
12
"@types/node" : " 12.0.7" ,
9
13
"@types/underscore" : " 1.8.18" ,
10
14
"@types/webpack" : " 4.4.32" ,
11
15
"@types/webpack-dev-server" : " 3.1.6" ,
12
16
"autosize" : " 4.0.2" ,
17
+ "babel-loader" : " ^8.0.6" ,
13
18
"blueimp-md5" : " 2.10.0" ,
14
19
"cache-loader" : " 4.0.0" ,
15
20
"clipboard" : " 2.0.4" ,
47
52
"spectrum-colorpicker" : " ^1.8.0" ,
48
53
"style-loader" : " 0.23.1" ,
49
54
"to-markdown" : " 3.1.0" ,
50
- "ts-loader" : " 6.0.2" ,
51
55
"ts-node" : " 7.0.1" ,
52
56
"typescript" : " 3.5.1" ,
53
57
"underscore" : " 1.9.1" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import "xdate/src/xdate.js";
13
13
import "jquery-validation/dist/jquery.validate.js" ;
14
14
import "blueimp-md5/js/md5.js" ;
15
15
import "clipboard/dist/clipboard.js" ;
16
- import "core-js/features/string/code-point-at" ;
17
16
import "winchan/winchan.js" ;
18
17
import "handlebars/dist/cjs/handlebars.runtime.js" ;
19
18
import "to-markdown/dist/to-markdown.js" ;
Original file line number Diff line number Diff line change 1
1
import "core-js/features/promise" ;
2
- import "core-js/features/string/ends-with" ;
3
- import "core-js/features/string/starts-with" ;
4
- import "core-js/features/string/code-point-at" ;
5
2
import "jquery/dist/jquery.js" ;
6
3
import "underscore/underscore.js" ;
7
4
import "../csrf.js" ;
Original file line number Diff line number Diff line change @@ -33,13 +33,11 @@ export default (env?: string): webpack.Configuration[] => {
33
33
} ,
34
34
] ,
35
35
} ,
36
- // Run the typescript compilier on .ts files before webpack
36
+ // Transpile .js and .ts files with Babel
37
37
{
38
- test : / \. t s x ? $ / ,
39
- loader : 'ts-loader' ,
40
- options : {
41
- configFile : require . resolve ( '../static/js/tsconfig.json' ) ,
42
- } ,
38
+ test : / \. ( j s | t s ) $ / ,
39
+ include : resolve ( __dirname , '../static/js' ) ,
40
+ loader : 'babel-loader' ,
43
41
} ,
44
42
// Uses script-loader on minified files so we don't change global variables in them.
45
43
// Also has the effect of making processing these files fast
@@ -156,7 +154,7 @@ export default (env?: string): webpack.Configuration[] => {
156
154
{ path : "sortablejs/Sortable.js" } ,
157
155
{ path : "winchan/winchan.js" , name : 'WinChan' } ,
158
156
] ;
159
- config . module . rules . push ( ...getExposeLoaders ( exposeOptions ) ) ;
157
+ config . module . rules . unshift ( ...getExposeLoaders ( exposeOptions ) ) ;
160
158
161
159
if ( production ) {
162
160
config . plugins = [
Original file line number Diff line number Diff line change 26
26
# historical commits sharing the same major version, in which case a
27
27
# minor version bump suffices.
28
28
29
- PROVISION_VERSION = '42.1 '
29
+ PROVISION_VERSION = '43.0 '
You can’t perform that action at this time.
0 commit comments