Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
refactor(webpack): remove unnecessary logging
Browse files Browse the repository at this point in the history
remove unnecessary logging
  • Loading branch information
danbucholtz committed Apr 12, 2017
1 parent 0099533 commit 3ee8b82
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/webpack/loader-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export function webpackLoader(source: string, map: any, webpackContex: any) {
const context = getContext();

const absolutePath = resolve(normalize(webpackContex.resourcePath));
console.log('webpack Loader: ', absolutePath);
Logger.debug(`[Webpack] webpackLoader: processing the following file: ${absolutePath}`);
const javascriptPath = changeExtension(absolutePath, '.js');
const sourceMapPath = javascriptPath + '.map';
Expand Down
2 changes: 0 additions & 2 deletions src/webpack/transpile-loader-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ export function transpileLoader(source: string, map: any, webpackContex: any) {
// we only really care about transpiling stuff that is not ionic-angular, angular, rxjs, or the users app
// so third party deps that may be es2015 or something
if (! isSrcOrIonicOrIonicDeps(absolutePath) && !context.isWatch && getBooleanPropertyValue(Constants.ENV_BUILD_TO_ES5)) {
console.log('Transpiling: ', absolutePath);
const transpiledOutput = transpileTsString(context, absolutePath, source);
const sourceMapObject = JSON.parse(transpiledOutput.sourceMapText);
return callback(null, transpiledOutput.outputText, sourceMapObject);
}
console.log('Skipping: ', absolutePath);
return callback(null, source, map);
} catch (ex) {
callback(ex);
Expand Down

0 comments on commit 3ee8b82

Please sign in to comment.