Skip to content

Commit

Permalink
build: updated worker plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrojcm committed Oct 3, 2019
1 parent c8cf661 commit fc4933a
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 28 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"env": {
"browser": true,
"es6": true
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
Expand All @@ -17,4 +18,4 @@
],
"rules": {
}
}
}
79 changes: 55 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"eslint-plugin-svelte3": "^1.2.0",
"nativescript": "^6.1.2",
"nativescript-dev-webpack": "~1.2.0",
"nativescript-worker-loader": "^0.9.6-next-2019-07-25-105954-01",
"svelte": "^3.12.1",
"svelte-loader": "github:rixo/svelte-loader#hmr-native",
"svelte-native-preprocessor": "^0.1.4",
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = env => {
const areCoreModulesExternal = Array.isArray(env.externals) && env.externals.some(e => e.indexOf("tns-core-modules") > -1);
if (platform === "ios" && !areCoreModulesExternal) {
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules";
};
}

let sourceMapFilename = nsWebpack.getSourceMapFilename(hiddenSourceMap, __dirname, dist);

Expand Down Expand Up @@ -130,7 +130,7 @@ module.exports = env => {
vendor: {
name: "vendor",
chunks: "all",
test: (module, chunks) => {
test: (module) => {
const moduleName = module.nameForCondition ? module.nameForCondition() : '';
return /[\\/]node_modules[\\/]/.test(moduleName) ||
appComponents.some(comp => comp === moduleName);
Expand Down

0 comments on commit fc4933a

Please sign in to comment.