-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: pull CDN lodash from gh instead of npm so ti supports es6 imports
- Loading branch information
1 parent
bb228bc
commit 3e28e55
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ const replaceDependenciesByJsdelivr = { | |
|
||
const dependencies = { | ||
'@streamparser/json': 'https://cdn.jsdelivr.net/npm/@streamparser/[email protected]', | ||
'lodash.get': 'https://cdn.jsdelivr.net/npm/lodash[email protected]/index.js' | ||
'lodash.get': '//cdn.jsdelivr.net/gh/lodash/lodash@master/get.js' | ||
}; | ||
|
||
build.onResolve({ namespace: 'file', filter: new RegExp(`(?:${Object.keys(dependencies).join('|')})`) }, (args) => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// packages/plainjs/src/BaseParser.js | ||
import lodashGet from "https://cdn.jsdelivr.net/npm/lodash[email protected]/index.js"; | ||
import lodashGet from "//cdn.jsdelivr.net/gh/lodash/lodash@master/get.js"; | ||
import defaultFormatter from "../formatters/default.js"; | ||
import numberFormatterCtor from "../formatters/number.js"; | ||
import stringFormatterCtor from "../formatters/string.js"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// packages/transforms/src/unwind.js | ||
import lodashGet from "https://cdn.jsdelivr.net/npm/lodash[email protected]/index.js"; | ||
import lodashGet from "//cdn.jsdelivr.net/gh/lodash/lodash@master/get.js"; | ||
import { setProp, unsetProp, flattenReducer } from "./utils.js"; | ||
function getUnwindablePaths(obj, currentPath) { | ||
return Object.keys(obj).reduce((unwindablePaths, key) => { | ||
|