mirror of
https://github.com/jakejarvis/get-canonical-url.git
synced 2025-04-26 06:35:22 -04:00
don't resolve node_modules in non-browser builds
This commit is contained in:
parent
0a7a95b30c
commit
b27a37defd
@ -41,6 +41,13 @@ export default [
|
|||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
del({ targets: "dist/*" }),
|
del({ targets: "dist/*" }),
|
||||||
|
eslint(),
|
||||||
|
resolve(),
|
||||||
|
babel({
|
||||||
|
babelHelpers: "bundled",
|
||||||
|
presets: [["@babel/preset-env"]],
|
||||||
|
exclude: ["node_modules/**"],
|
||||||
|
}),
|
||||||
copy({
|
copy({
|
||||||
// clearly this isn't really typescript, so we need to manually copy the type definition file
|
// clearly this isn't really typescript, so we need to manually copy the type definition file
|
||||||
targets: [
|
targets: [
|
||||||
@ -51,13 +58,6 @@ export default [
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
resolve(),
|
|
||||||
eslint(),
|
|
||||||
babel({
|
|
||||||
babelHelpers: "bundled",
|
|
||||||
presets: [["@babel/preset-env"]],
|
|
||||||
exclude: ["node_modules/**"],
|
|
||||||
}),
|
|
||||||
filesize(),
|
filesize(),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@ -80,8 +80,8 @@ export default [
|
|||||||
banner: banner,
|
banner: banner,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
external: ["normalize-url"],
|
||||||
plugins: [
|
plugins: [
|
||||||
resolve(),
|
|
||||||
babel({
|
babel({
|
||||||
babelHelpers: "bundled",
|
babelHelpers: "bundled",
|
||||||
exclude: ["node_modules/**"],
|
exclude: ["node_modules/**"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user