Skip to content

Commit

Permalink
Merge pull request #307 from zenput/fix_cordoava9
Browse files Browse the repository at this point in the history
Replace requireCordovaModule() with require()
  • Loading branch information
EddyVerbruggen authored Dec 3, 2019
2 parents c1a0de2 + 0b70d0c commit 636e53e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/windows/hooks/prepare-manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function(context) {
var fs = context.requireCordovaModule('fs'),
et = context.requireCordovaModule('elementtree'),
path = context.requireCordovaModule('path'),
var fs = require('fs'),
et = require('elementtree'),
path = require('path'),
xml= context.requireCordovaModule('cordova-common').xmlHelpers,
projectRoot = path.join(context.opts.projectRoot, "platforms", "windows");

Expand Down
6 changes: 3 additions & 3 deletions src/wp8/hooks/add-uri-mapper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function (context) {
var deferred = context.requireCordovaModule('q').defer(),
fs = context.requireCordovaModule('fs'),
path = context.requireCordovaModule('path'),
var deferred = require('q').defer(),
fs = require('fs'),
path = require('path'),
projectRoot = context.opts.projectRoot;

// While on AppBuilder this may work, the Cordova CLI doesn't like it
Expand Down

0 comments on commit 636e53e

Please sign in to comment.