Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 654c3d1

Browse files
committed
Use Svelte NodeGUI Preprocessor
1 parent deb63e6 commit 654c3d1

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

demo/package-lock.json

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"devDependencies": {
1919
"@nodegui/packer": "^1.4.1",
20+
"@nodegui/svelte-nodegui-preprocessor": "^0.1.0",
2021
"@tsconfig/svelte": "^1.0.10",
2122
"@types/node": "^14.14.31",
2223
"clean-webpack-plugin": "^3.0.0",
@@ -25,7 +26,6 @@
2526
"native-addon-loader": "^2.0.1",
2627
"svelte": "^3.32.1",
2728
"svelte-loader": "^2.13.6",
28-
"svelte-native-preprocessor": "~0.2.0",
2929
"svelte-preprocess": "^4.6.5",
3030
"ts-loader": "^8.0.17",
3131
"typescript": "^4.2.2",

demo/src/App.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
});
1212
</script>
1313

14-
<svelte:options namespace="foreign" />
1514
<window bind:this={win} windowTitle="Hello World">
1615
<view id="container" style="background-color: '#41444A';">
1716
<text style="color: white;">Some text with actual children</text>

demo/webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const path = require("path");
22
const webpack = require("webpack");
33
const ForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
44
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
5-
const svelteNativePreprocessor = require("svelte-native-preprocessor");
6-
const sveltePreprocess = require("svelte-preprocess");
5+
const SvelteNodeGUIPreprocessor = require("@nodegui/svelte-nodegui-preprocessor");
6+
const SveltePreprocess = require("svelte-preprocess");
77

88
module.exports = (env, argv) => {
99
const config = {
@@ -67,8 +67,8 @@ module.exports = (env, argv) => {
6767
loader: 'svelte-loader',
6868
options: {
6969
preprocess: {
70-
...sveltePreprocess(),
71-
...svelteNativePreprocessor(),
70+
...SveltePreprocess(),
71+
...SvelteNodeGUIPreprocessor(),
7272
},
7373
}
7474
}

0 commit comments

Comments
 (0)