File tree Expand file tree Collapse file tree 7 files changed +10
-16
lines changed Expand file tree Collapse file tree 7 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ async function buildEntryPoint() {
3939 rollupPlugins . replace ( {
4040 '___BROWSER_BRAND___' : browserBrand ,
4141 } ) ,
42- rollupPlugins . commonjs ( ) ,
4342 rollupPlugins . nodeResolve ( ) ,
4443 rollupPlugins . inlineFs ( { verbose : false } ) ,
4544 rollupPlugins . terser ( ) ,
Original file line number Diff line number Diff line change 55 */
66'use strict' ;
77
8- const SettingsController = require ( './settings-controller.js' ) ;
8+ import * as SettingsController from './settings-controller.js' ;
99
1010const VIEWER_URL = 'https://googlechrome.github.io/lighthouse/viewer/' ;
1111const optionsVisibleClass = 'main--options-visible' ;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ function loadSettings() {
8989 } ) ;
9090}
9191
92- module . exports = {
92+ export {
9393 DEFAULT_CATEGORIES ,
9494 STORAGE_KEYS ,
9595 saveSettings ,
File renamed without changes.
Original file line number Diff line number Diff line change 55 */
66'use strict' ;
77
8- const path = require ( 'path' ) ;
9- const puppeteer = require ( 'puppeteer-core' ) ;
10- const { getChromePath} = require ( 'chrome-launcher' ) ;
11- const { DEFAULT_CATEGORIES , STORAGE_KEYS } =
12- require ( '../../extension/scripts/settings-controller.js' ) ;
13- const { LH_ROOT } = require ( '../../../root.js' ) ;
8+ import path from 'path' ;
9+ import puppeteer from 'puppeteer-core' ;
10+ import { getChromePath } from 'chrome-launcher' ;
11+ import { DEFAULT_CATEGORIES , STORAGE_KEYS } from '../../extension/scripts/settings-controller.js' ;
12+ import { LH_ROOT } from '../../../root.js' ;
1413
1514const lighthouseExtensionPath = path . resolve ( LH_ROOT , 'dist/extension-chrome' ) ;
1615
Original file line number Diff line number Diff line change 55 */
66'use strict' ;
77
8- const SettingsController = require ( '../../extension/scripts/settings-controller.js' ) ;
9- const defaultConfig = require ( '../../../lighthouse-core/config/default-config.js' ) ;
10- const format = require ( '../../../shared/localization/format.js' ) ;
8+ import * as SettingsController from '../../extension/scripts/settings-controller.js' ;
9+ import defaultConfig from '../../../lighthouse-core/config/default-config.js' ;
10+ import * as format from '../../../shared/localization/format.js' ;
1111
1212describe ( 'Lighthouse chrome extension SettingsController' , ( ) => {
1313 it ( 'default categories should be correct' , ( ) => {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments