@ohanapediatrics/react-time-range
Advanced tools
Comparing version
{ | ||
"name": "@ohanapediatrics/react-time-range", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "A flexible time range selector for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,4 +0,6 @@ | ||
var path = require("path"); | ||
const path = require('path'); | ||
module.exports = { | ||
entry: "./src/index.ts", | ||
devtool: 'source-map', | ||
output: { | ||
@@ -12,3 +14,7 @@ path: path.resolve(__dirname, "dist"), | ||
resolve: { | ||
extensions: [".ts", ".tsx", ".js", ".json"] | ||
extensions: [".ts", ".tsx", ".js", ".json"], | ||
alias: { | ||
'react': path.resolve(__dirname, './node_modules/react'), | ||
'react-dom': path.resolve(__dirname, './node_modules/react-dom'), | ||
} | ||
}, | ||
@@ -35,4 +41,16 @@ module: { | ||
externals: { | ||
react: "commonjs react" | ||
// Don't bundle react or react-dom | ||
react: { | ||
commonjs: 'react', | ||
commonjs2: 'react', | ||
amd: 'React', | ||
root: 'React' | ||
}, | ||
'react-dom': { | ||
commonjs: 'react-dom', | ||
commonjs2: 'react-dom', | ||
amd: 'ReactDOM', | ||
root: 'ReactDOM' | ||
} | ||
} | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
320888
0.25%27
3.85%1845
0.93%0
-100%