Skip to content

Commit 39f33df

Browse files
committed
Freshen dependencies
1 parent 54ba85d commit 39f33df

File tree

4 files changed

+1144
-2369
lines changed

4 files changed

+1144
-2369
lines changed

.babelrc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
22
"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+
]
413
],
514
"plugins": [
6-
["@babel/plugin-proposal-class-properties", { "loose": true }],
715
["@babel/plugin-syntax-dynamic-import"],
816
["@babel/plugin-transform-runtime"]
917
]

package.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@
44
"private": true,
55
"license": "MIT",
66
"dependencies": {
7-
"@babel/core": "7.15.5",
8-
"@babel/plugin-proposal-class-properties": "7.14.5",
7+
"@babel/core": "7.16.0",
98
"@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",
1514
"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"
2221
},
2322
"scripts": {
2423
"build": "webpack"

src/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import "./index.css"
22
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"
45

5-
const application = Application.start()
6-
const context = require.context("./controllers", true, /\.js$/)
7-
application.load(definitionsFromContext(context))
6+
const application = new Application
7+
application.register("application", ApplicationController)
8+
application.register("profile", ProfileController)
9+
application.start()

0 commit comments

Comments
 (0)