File tree 4 files changed +1144
-2369
lines changed
4 files changed +1144
-2369
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"presets" : [
3
- [" @babel/preset-env" , { "loose" : true }]
3
+ [
4
+ " @babel/preset-env" ,
5
+ {
6
+ "loose" : true ,
7
+ "shippedProposals" : true ,
8
+ "targets" : {
9
+ "esmodules" : true
10
+ }
11
+ }
12
+ ]
4
13
],
5
14
"plugins" : [
6
- [" @babel/plugin-proposal-class-properties" , { "loose" : true }],
7
15
[" @babel/plugin-syntax-dynamic-import" ],
8
16
[" @babel/plugin-transform-runtime" ]
9
17
]
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"license" : " MIT" ,
6
6
"dependencies" : {
7
- "@babel/core" : " 7.15.5" ,
8
- "@babel/plugin-proposal-class-properties" : " 7.14.5" ,
7
+ "@babel/core" : " 7.16.0" ,
9
8
"@babel/plugin-syntax-dynamic-import" : " 7.8.3" ,
10
- "@babel/plugin-transform-runtime" : " 7.15 .0" ,
11
- "@babel/preset-env" : " 7.15.6 " ,
12
- "@babel/runtime" : " 7.15.4 " ,
13
- "babel-loader" : " 8.2.2 " ,
14
- "css-loader" : " 6.3 .0" ,
9
+ "@babel/plugin-transform-runtime" : " 7.16 .0" ,
10
+ "@babel/preset-env" : " 7.16.0 " ,
11
+ "@babel/runtime" : " 7.16.0 " ,
12
+ "babel-loader" : " 8.2.3 " ,
13
+ "css-loader" : " 6.5 .0" ,
15
14
"diff" : " 5.0.0" ,
16
- "firebase" : " 9.1.3 " ,
17
- "html-webpack-plugin" : " 5.3.2 " ,
18
- "mini-css-extract-plugin" : " 2.3.0 " ,
19
- "stimulus" : " https://github.com/stimulusjs/dev-builds/archive/b8cc8c4/stimulus.tar.gz " ,
20
- "webpack" : " 5.56 .0" ,
21
- "webpack-cli" : " 3.3.12 "
15
+ "firebase" : " 9.2.0 " ,
16
+ "html-webpack-plugin" : " 5.5.0 " ,
17
+ "mini-css-extract-plugin" : " 2.4.3 " ,
18
+ "stimulus" : " 3.0.1 " ,
19
+ "webpack" : " 5.61 .0" ,
20
+ "webpack-cli" : " 4.9.1 "
22
21
},
23
22
"scripts" : {
24
23
"build" : " webpack"
Original file line number Diff line number Diff line change 1
1
import "./index.css"
2
2
import { Application } from "stimulus"
3
- import { definitionsFromContext } from "stimulus/webpack-helpers"
3
+ import ApplicationController from "./controllers/application_controller"
4
+ import ProfileController from "./controllers/profile_controller"
4
5
5
- const application = Application . start ( )
6
- const context = require . context ( "./controllers" , true , / \. j s $ / )
7
- application . load ( definitionsFromContext ( context ) )
6
+ const application = new Application
7
+ application . register ( "application" , ApplicationController )
8
+ application . register ( "profile" , ProfileController )
9
+ application . start ( )
You can’t perform that action at this time.
0 commit comments