Skip to content

Commit

Permalink
fix duplicate aliased import
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Dec 20, 2022
1 parent a9d58e6 commit c930b4b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/webpack/src/ember-webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,7 @@ import {
} from '@embroider/core';
import { tmpdir } from '@embroider/shared-internals';
import webpack, { Configuration, RuleSetUseItem, WebpackPluginInstance } from 'webpack';
import {
readFileSync,
outputFileSync,
copySync,
realpathSync,
Stats,
statSync,
readJsonSync,
readJSONSync,
} from 'fs-extra';
import { readFileSync, outputFileSync, copySync, realpathSync, Stats, statSync, readJSONSync } from 'fs-extra';
import { join, dirname, relative, sep } from 'path';
import isEqual from 'lodash/isEqual';
import mergeWith from 'lodash/mergeWith';
Expand Down Expand Up @@ -333,7 +324,7 @@ const Webpack: PackagerConstructor<Options> = class Webpack implements Packager
appRelativeSourceMapURL = join(dirname(script), fileRelativeSourceMapURL);
let content;
try {
content = readJsonSync(join(this.pathToVanillaApp, appRelativeSourceMapURL));
content = readJSONSync(join(this.pathToVanillaApp, appRelativeSourceMapURL));
} catch (err) {
// the script refers to a sourcemap that doesn't exist, so we just leave
// the map out.
Expand Down

0 comments on commit c930b4b

Please sign in to comment.