Skip to content

Commit

Permalink
switch to esbuild from rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Code-Monkey committed May 3, 2022
2 parents fa96dd4 + 85fd047 commit 995dc4a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 29 deletions.
16 changes: 3 additions & 13 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {waitFor, screen} from "@testing-library/react";
import { waitFor, screen } from '@testing-library/react';
import * as React from 'react';

import { mountWithTheme } from '../../../test-tools';
Expand Down
11 changes: 6 additions & 5 deletions packages/memoize/benchmarks/library-comparison.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* eslint-disable no-console */
import Benchmark from 'benchmark';
import memoizeOne from '../dist/memoize-one.esm.js';
import { memoize as lodash } from 'lodash';
import fastMemoize from 'fast-memoize';
import { memoize as lodash } from 'lodash';
import { markdownTable } from 'markdown-table';
import mem from 'mem';
import ora from 'ora';
import moize from 'moize';
import memoizee from 'memoizee';
import moize from 'moize';
import { green, bold } from 'nanocolors';
import { markdownTable } from 'markdown-table';
import ora from 'ora';

import memoizeOne from '../dist/memoize-one.esm.js';

const libraries = [
{
Expand Down
8 changes: 4 additions & 4 deletions packages/react-feather/src/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export const getIcon = (name: IconTypes) => {
return lazy(() => import(`./icons/${name}`));
};

export const Icon = ({name, ...rest}: Props) => {
export const Icon = ({ name, ...rest }: Props) => {
const Element = getIcon(name);

return (
<Suspense fallback={<HelpCircle {...rest} data-name='fallback-icon'/>}>
<Element data-name={name} {...rest} />
</Suspense>
<Suspense fallback={<HelpCircle {...rest} data-name='fallback-icon' />}>
<Element data-name={name} {...rest} />
</Suspense>
);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/react-feather/src/__test__/Icon.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('<Icon />', () => {
expect(asFragment()).toMatchSnapshot();

await waitFor(() => expect(screen.getByTitle('check-icon')), {
timeout: 2000
timeout: 2000,
});

expect(asFragment()).toMatchSnapshot();
Expand Down
12 changes: 7 additions & 5 deletions packages/tcm-cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ import shell from 'shelljs';
import sortPackageJson from 'sort-package-json';
import glob from 'tiny-glob/sync.js';

import {
default as DynamicImport
} from "@rtvision/esbuild-dynamic-import";

const require = createRequire(import.meta.url);

import { paths } from './constants.js';
Expand All @@ -42,7 +38,13 @@ import {
composeDependencies,
composePackageJson,
} from './templates/utils/index.js';
import { PackageJson, WatchOpts, BuildOpts, NormalizedOpts, ModuleFormat } from './types.js';
import {
PackageJson,
WatchOpts,
BuildOpts,
NormalizedOpts,
ModuleFormat,
} from './types.js';
import {
resolveApp,
safePackageName,
Expand Down

0 comments on commit 995dc4a

Please sign in to comment.