Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Bump dependencies and remove loader-utils (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Apr 12, 2022
1 parent da457e5 commit 4c2c93e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 24 deletions.
8 changes: 4 additions & 4 deletions example-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"start": "ecstatic build --port 3000"
},
"dependencies": {
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"ecstatic": "^3.3.0",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1"
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
}
}
8 changes: 4 additions & 4 deletions example-src-dir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"start": "ecstatic build --port 3000"
},
"dependencies": {
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"ecstatic": "^3.3.0",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1"
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
}
}
8 changes: 4 additions & 4 deletions example-sync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"start": "ecstatic build --port 3000"
},
"dependencies": {
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"ecstatic": "^3.3.0",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1"
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
}
}
8 changes: 4 additions & 4 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"start": "ecstatic build --port 3000"
},
"dependencies": {
"react": "^16.7.0",
"react-dom": "^16.7.0"
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"ecstatic": "^3.3.0",
"webpack": "^4.28.4",
"webpack-cli": "^3.2.1"
"webpack": "^5.69.1",
"webpack-cli": "^4.9.2"
}
}
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
"license": "MIT",
"private": false,
"devDependencies": {
"webpack": "^4.28.3",
"@swc/core": "^1.2.52"
"@swc/core": "^1.2.147",
"webpack": "^5.69.1"
},
"peerDependencies": {
"@swc/core": "^1.2.52",
"@swc/core": "^1.2.147",
"webpack": ">=2"
},
"dependencies": {
"loader-utils": "^2.0.0"
}
}
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const loaderUtils = require("loader-utils");
const swc = require("@swc/core");

function makeLoader() {
Expand All @@ -7,7 +6,7 @@ function makeLoader() {
const callback = this.async();
const filename = this.resourcePath;

let loaderOptions = loaderUtils.getOptions(this) || {};
let loaderOptions = this.getOptions() || {};

// Standardize on 'sourceMaps' as the key passed through to Webpack, so that
// users may safely use either one alongside our default use of
Expand Down

0 comments on commit 4c2c93e

Please sign in to comment.