Skip to content

Commit d4cf443

Browse files
authored
Merge pull request nullstack#352 from nullstack/next
Next
2 parents 6dd4a67 + 2f9ccf7 commit d4cf443

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

loaders/skip-loader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = function skipLoader() {
2+
return ''
3+
}

package.json

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nullstack",
3-
"version": "0.19.0",
3+
"version": "0.19.1",
44
"description": "Feature-Driven Full Stack JavaScript Components",
55
"main": "./types/index.d.ts",
66
"author": "Mortaro",
@@ -15,15 +15,6 @@
1515
"lint": "eslint \"**/*.{js,jsx,ts,tsx,njs,nts}\" --fix"
1616
},
1717
"dependencies": {
18-
"@babel/core": "^7.18.13",
19-
"@babel/parser": "7.20.15",
20-
"@babel/plugin-proposal-class-properties": "^7.18.6",
21-
"@babel/plugin-proposal-export-default-from": "^7.18.10",
22-
"@babel/plugin-transform-react-jsx": "^7.18.10",
23-
"@babel/plugin-transform-typescript": "^7.18.12",
24-
"@babel/preset-env": "^7.18.10",
25-
"@babel/preset-react": "^7.18.6",
26-
"@babel/traverse": "7.20.13",
2718
"@swc/core": "1.3.35",
2819
"babel-loader": "9.1.2",
2920
"body-parser": "1.20.1",
@@ -45,11 +36,9 @@
4536
"swc-loader": "0.2.3",
4637
"swc-plugin-nullstack": "0.1.3",
4738
"terser-webpack-plugin": "5.3.6",
48-
"time-analytics-webpack-plugin": "^0.1.20",
4939
"webpack": "^5.0.0",
5040
"webpack-dev-server": "4.11.1",
51-
"webpack-hot-middleware": "^2.25.3",
52-
"ws": "8.12.0"
41+
"webpack-hot-middleware": "^2.25.3"
5342
},
5443
"devDependencies": {
5544
"webpack-dev-middleware": "github:Mortaro/webpack-dev-middleware#fix-write-to-disk-cleanup"

webpack/module.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ function scss(options) {
3535
}
3636

3737
function css(options) {
38-
if (options.target !== 'client') return
39-
38+
if (options.target !== 'client') {
39+
return {
40+
test: /\.s?[ac]ss$/,
41+
loader: path.posix.join(options.configFolder, 'loaders', 'skip-loader.js'),
42+
}
43+
}
4044
const { loader } = require('mini-css-extract-plugin')
4145
return {
4246
test: /\.s?[ac]ss$/,

0 commit comments

Comments
 (0)