Removing rollup replacement.
This commit is contained in:
parent
7fed6fe599
commit
430913ebbe
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -22,7 +22,6 @@
|
|||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^17.1.0",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-replace": "^2.3.4",
|
||||
"doctrine": "^3.0.0",
|
||||
"jest": "^26.6.3",
|
||||
"rollup": "^2.36.2",
|
||||
|
|
|
@ -3,7 +3,6 @@ import resolve from "rollup-plugin-node-resolve"
|
|||
import builtins from "rollup-plugin-node-builtins"
|
||||
import globals from "rollup-plugin-node-globals"
|
||||
import json from "@rollup/plugin-json"
|
||||
import replace from "@rollup/plugin-replace"
|
||||
import { terser } from "rollup-plugin-terser"
|
||||
|
||||
const production = !process.env.ROLLUP_WATCH
|
||||
|
@ -19,18 +18,6 @@ export default {
|
|||
},
|
||||
],
|
||||
plugins: [
|
||||
// this replacement is a crazy hack to fix an issue that
|
||||
// rollup has with the handlebars-helper package
|
||||
// if we don't do this then the browser will always error
|
||||
// with the isNumber function being unavailable
|
||||
replace({
|
||||
include: [
|
||||
"node_modules/handlebars-helpers/lib/**",
|
||||
"node_modules/handlebar-utils/lib/**",
|
||||
],
|
||||
"utils.isNumber(": "!isNaN(",
|
||||
"isNumber(": "!isNaN(",
|
||||
}),
|
||||
resolve({
|
||||
mainFields: ["module", "main"],
|
||||
preferBuiltins: true,
|
||||
|
|
Loading…
Reference in New Issue