Skip to content

Commit 18c233f

Browse files
committed
Revert source map change
1 parent 812b389 commit 18c233f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

e2e/sample-apps/modular.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ async function callVertexAI(app) {
317317
mode: 'prefer_on_device'
318318
});
319319
const prompt = "What is Roko's Basalisk?";
320-
const singleResult = await model.generateContent(prompt);
320+
const singleResult = await model.generateContent([
321+
{ text: 'describe the following:' },
322+
{ text: 'the mojave desert' }
323+
]);
321324
console.log(`Generated text: ${singleResult.response.text()}`);
322325
// const streamResult = await model.generateContentStream(
323326
// prompt

e2e/webpack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ module.exports = [
8888
stats: {
8989
colors: true
9090
},
91-
// Generates more granular source map to avoid collisions between
92-
// getGenerativeModel and getAnalytics.
93-
devtool: 'eval-source-map',
91+
devtool: 'source-map',
9492
devServer: {
9593
static: './build'
9694
}

0 commit comments

Comments
 (0)