Skip to content

Commit 40d3cbf

Browse files
committed
remove native-ext-loader from renderer
1 parent cbf95cc commit 40d3cbf

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

template/.electron-nuxt/renderer/nuxt.config.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,6 @@ const baseExtend = (config, { isClient }) => {
5757
if (jsLoader) jsLoader.use = [path.join(__dirname, 'do-nothing-loader.js')]
5858
}
5959

60-
// https://github.com/smt116/node-native-ext-loader#basepath-default-
61-
const basePathToNativeModules = isProduction ? ['_nuxt'] : []
62-
config.module.rules.push(
63-
{
64-
test: /\.node$/,
65-
loader: 'native-ext-loader',
66-
options: {
67-
basePath: basePathToNativeModules
68-
}
69-
}
70-
)
71-
7260
}
7361

7462
const mergeConfig = customConfig => {

template/package-template.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
{{dependency 'less'}}
6868
{{dependency 'less-loader'}}
6969
{{/if_eq}}
70-
{{dependency 'native-ext-loader'}}
7170
{{dependency 'nuxt'}}
7271
{{#if typescript}}
7372
{{dependency '@nuxt/typescript-build'}}

template/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"@nuxtjs/eslint-config": "6.0.0",
2626
"less": "4.1.1",
2727
"less-loader": "7.0.1",
28-
"native-ext-loader": "2.3.0",
2928
"nuxt": "2.15.4",
3029
"node-sass": "4.14.1",
3130
"sass-loader": "10.0.2",

0 commit comments

Comments
 (0)