Skip to content

Commit

Permalink
Relative import for local custom loader (#2912)
Browse files Browse the repository at this point in the history
Signed-off-by: sirugh <rugh@adobe.com>

Co-authored-by: Devagouda <40405790+dpatil-magento@users.noreply.github.com>
  • Loading branch information
sirugh and dpatil-magento authored Dec 19, 2020
1 parent b47e582 commit 548a85a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @module Buildpack/WebpackTools
*/
const path = require('path');

/**
* Create a Webpack
Expand Down Expand Up @@ -56,7 +57,10 @@ getModuleRules.js = async ({
const astLoaders = [
{
// Use custom loader to enable warning reporting from Babel plugins
loader: 'buildbus-babel-loader',
loader: path.resolve(
__dirname,
'../loaders/buildbus-babel-loader.js'
),
options: {
sourceMaps: mode === 'development' && 'inline',
envName: mode,
Expand Down

0 comments on commit 548a85a

Please sign in to comment.