Skip to content

Commit

Permalink
Call addDevDependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed May 12, 2021
1 parent c19436e commit 51f70f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/transformers/babel/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ export async function load(
shouldAutoInstall: options.shouldAutoInstall,
},
);
config.addDevDependency({
moduleSpecifier: '@babel/core',
resolveFrom: config.searchPath,
});

let babelOptions = {
filename: config.searchPath,
Expand Down
5 changes: 5 additions & 0 deletions packages/transformers/postcss/src/loadConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ export async function load({

let contents = null;
if (configFile) {
config.addDevDependency({
moduleSpecifier: 'postcss',
resolveFrom: config.searchPath,
});

contents = configFile.contents;
let isDynamic = configFile && path.extname(configFile.filePath) === '.js';
if (isDynamic) {
Expand Down

0 comments on commit 51f70f8

Please sign in to comment.