Fixing app not found error during build
This commit is contained in:
commit
a2003d3afa
|
@ -22,7 +22,9 @@
|
|||
"devDependencies": {
|
||||
"@woocommerce/dependency-extraction-webpack-plugin": "1.4.0",
|
||||
"@woocommerce/eslint-plugin": "1.1.0",
|
||||
"@wordpress/scripts": "^13.0.3"
|
||||
"@wordpress/prettier-config": "^1.0.1",
|
||||
"@wordpress/scripts": "^13.0.3",
|
||||
"prettier": "^2.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@woocommerce/data": "^1.1.1",
|
||||
|
|
|
@ -11,9 +11,7 @@ import { AdminNotes } from '../admin-notes';
|
|||
import { Tools } from '../tools';
|
||||
import { default as Options } from '../options';
|
||||
|
||||
const tabs = applyFilters(
|
||||
'woocommerce_admin_test_helper_tabs',
|
||||
[
|
||||
const tabs = applyFilters('woocommerce_admin_test_helper_tabs', [
|
||||
{
|
||||
name: 'options',
|
||||
title: 'Options',
|
||||
|
@ -29,8 +27,7 @@ const tabs = applyFilters(
|
|||
title: 'Tools',
|
||||
content: <Tools />,
|
||||
},
|
||||
]
|
||||
);
|
||||
]);
|
||||
|
||||
export function App() {
|
||||
return (
|
|
@ -9,7 +9,9 @@ import { render } from '@wordpress/element';
|
|||
import { App } from './app';
|
||||
import './index.scss';
|
||||
|
||||
const appRoot = document.getElementById( 'woocommerce-admin-test-helper-app-root' );
|
||||
const appRoot = document.getElementById(
|
||||
'woocommerce-admin-test-helper-app-root'
|
||||
);
|
||||
|
||||
if (appRoot) {
|
||||
render(<App />, appRoot);
|
||||
|
|
Loading…
Reference in New Issue