Skip to content

Commit

Permalink
Add neo-async to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Dec 7, 2020
1 parent 2b683aa commit cd5ecb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/react-transport-dom-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
},
"dependencies": {
"acorn": "^6.2.1",
"neo-async": "^2.6.1",
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ import {mkdirSync, writeFileSync} from 'fs';
import {dirname, resolve, join} from 'path';
import {pathToFileURL} from 'url';

// This can't be loaded as an ESM module.
const asyncLib = require('neo-async');
import asyncLib from 'neo-async';

const ModuleDependency = require('webpack/lib/dependencies/ModuleDependency');
const NullDependency = require('webpack/lib/dependencies/NullDependency');
const AsyncDependenciesBlock = require('webpack/lib/AsyncDependenciesBlock');
const Template = require('webpack/lib/Template');
import ModuleDependency from 'webpack/lib/dependencies/ModuleDependency';
import NullDependency from 'webpack/lib/dependencies/NullDependency';
import AsyncDependenciesBlock from 'webpack/lib/AsyncDependenciesBlock';
import Template from 'webpack/lib/Template';

class ClientReferenceDependency extends ModuleDependency {
constructor(request) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const bundles = [
moduleType: RENDERER_UTILS,
entry: 'react-transport-dom-webpack/plugin',
global: 'ReactFlightWebpackPlugin',
externals: ['fs', 'path', 'url'],
externals: ['fs', 'path', 'url', 'neo-async'],
},

/******* React Transport DOM Webpack Node.js Loader *******/
Expand Down

0 comments on commit cd5ecb6

Please sign in to comment.