mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-12 01:19:43 +01:00
trying to make this package work with ssr
This commit is contained in:
parent
ac8acc8582
commit
b9410d5a2d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-datalist-input",
|
"name": "react-datalist-input",
|
||||||
"version": "1.3.9",
|
"version": "1.3.10",
|
||||||
"description": "This package provides a react component as follows: an input field with a drop down menu to pick a possible option based on the current input.",
|
"description": "This package provides a react component as follows: an input field with a drop down menu to pick a possible option based on the current input.",
|
||||||
"main": "./lib/DataListInput.js",
|
"main": "./lib/DataListInput.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -1,12 +1,15 @@
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
target: 'node',
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
entry: './src/DataListInput.jsx',
|
entry: './src/DataListInput.jsx',
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve('lib'),
|
path: path.resolve('lib'),
|
||||||
|
library: 'DataListInput',
|
||||||
|
libraryTarget: 'umd', //libraryTarget: 'commonjs2'
|
||||||
filename: 'DataListInput.js',
|
filename: 'DataListInput.js',
|
||||||
libraryTarget: 'commonjs2'
|
globalObject: 'this'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
Loading…
Reference in New Issue
Block a user