babel-plugin-universal-import
Advanced tools
Comparing version 1.1.9 to 1.1.10
{ | ||
"name": "babel-plugin-universal-import", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Babel plugin to transform import() into its Universal counterpart", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -55,11 +55,11 @@ # babel-plugin-universal-import [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg?style=flat-square)](https://gitter.im/faceyspacey/Lobby) | ||
import { importCss as _importCss } from 'babel-plugin-universal-import/importCss.js' | ||
import _path from 'path' | ||
import { universalImport as _universalImport } from 'babel-plugin-universal-import/universalImport.js' | ||
import universalImport from 'babel-plugin-universal-import/universalImport.js' | ||
import importCss from 'babel-plugin-universal-import/importCss.js' | ||
import path from 'path' | ||
universal(_universalImport({ | ||
universal(universalImport({ | ||
chunkName: () => 'Foo', | ||
path: () => _path.join(__dirname, './Foo.js'), | ||
path: () => path.join(__dirname, './Foo.js'), | ||
resolve: () => require.resolveWeak('./Foo.js'), | ||
load: () => Promise.all([import( /* webpackChunkName: 'Foo' */ './Foo.js'), _importCss('Foo')]), | ||
load: () => Promise.all([import( /* webpackChunkName: 'Foo' */ './Foo.js'), importCss('Foo')]), | ||
id: './Foo.js', | ||
@@ -77,11 +77,11 @@ file: 'parentFile.js', | ||
import { importCss as _importCss } from 'babel-plugin-universal-import/importCss.js' | ||
import _path from 'path' | ||
import { universalImport as _universalImport } from 'babel-plugin-universal-import/universalImport.js' | ||
import universalImport from 'babel-plugin-universal-import/universalImport.js' | ||
import importCss from 'babel-plugin-universal-import/importCss.js' | ||
import path from 'path' | ||
universal(({ page }) => _universalImport({ | ||
universal(({ page }) => universalImport({ | ||
chunkName: () => `async/${page}`, | ||
path: () => _path.join(__dirname, `../async/${page}`), | ||
path: () => path.join(__dirname, `../async/${page}`), | ||
resolve: () => require.resolveWeak(`../async/${page}`), | ||
load: () => Promise.all([import( /* webpackChunkName: 'async/[request]' */ `../async/${page}`), _importCss(`async/${page}`)]), | ||
load: () => Promise.all([import( /* webpackChunkName: 'async/[request]' */ `../async/${page}`), importCss(`async/${page}`)]), | ||
id: '../async/${page}', | ||
@@ -88,0 +88,0 @@ file: 'parentFile.js', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
350940