cfware / babel-plugin-bare-import-rewrite Goto Github PK
View Code? Open in Web Editor NEWBabel plugin to rewrite bare imports for use on web browsers.
License: BSD 3-Clause "New" or "Revised" License
Babel plugin to rewrite bare imports for use on web browsers.
License: BSD 3-Clause "New" or "Revised" License
devDependency
@babel/core was updated from 7.6.4
to 7.7.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
devDependency
@babel/core was updated from 7.6.2
to 7.6.3
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
βοΈ Important announcement: Greenkeeper will be saying goodbye π and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
devDependency
@babel/core was updated from 7.8.7
to 7.9.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Currently when an import cannot be resolved an error is logged but compilation does not fail. This makes it hard to spot errors during development, as code will be broken but it's not very apparent why.
Especially if you are working in the browser, and not looking at the terminal, the message: Failed to resolve module specifier "foo". Relative references must start with either "/", "./", or "../".
is not very helpful.
I suggest adding an option to allow failing when a module could not be resolved.
I can work on a PR for this.
devDependency
@babel/core was updated from 7.1.1
to 7.1.2
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
This should be passed on to resolve
. From the resolve readme for current releases:
basedir
to real path before resolving.true
by default but it will be changed tofalse
in the next major version because Node's resolution algorithm does not preserve symlinks by default.So maybe babel-plugin-bare-import-rewrite should set preserveSymlinks: false
by default and list this a breaking change. master
of resolve already has preserveSymlinks: false
by default but no releases have been made from master
.
Requirements:
Currently, if I have a /src/some-folder/my-component.js
file like that:
import { html } from '@polymer/polymer/polymer-element.js'
import { MyProjectDependency } from '/src/my-project-dependency.js'
...
The URL rewrite transforms that to:
import { html } from '/node_modules/@polymer/polymer/polymer-element.js'
import { MyProjectDependency } from '/src/my-project-dependency.js'
...
And it outputs the following warning:
Β Could not resolve '/src/my-project-dependency.js' in file '...../src/some-folder/my-component.js'.
Would it be possible to rewrite the absolute paths to relative paths like the polymer-build
project does?
1.15.0
to 1.15.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
resolve is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 4 commits.
c1750d6
v1.15.1
5e1f5c8
[Dev Deps] update @ljharb/eslint-config
891bd89
[Fix] correct behavior when requiring .
with same name (#212)
16c1170
[Tests] allow node 5 on windows to fail due to npm registry bug
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
βοΈ Important announcement: Greenkeeper will be saying goodbye π and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
devDependency
@babel/core was updated from 7.8.7
to 7.9.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
βοΈ Important announcement: Greenkeeper will be saying goodbye π and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
devDependency
@babel/core was updated from 7.8.7
to 7.9.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.
babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
This is a request to move the path traversal for CallExpression/Import/Export/etc. to the Program exit. I have a sample repo to load a React application in ESM and use this module to apply the import path resolution.
The problem is that my CJS->ESM plugin must run first, and then this plugin. Since Babel doesn't have a way to properly schedule tasks, the fix here would be to run later.
module.exports = ({types: t}) => ({
inherits: syntax.default,
visitor: {
Program: {
exit(path, { opts }) {
path.traverse({
CallExpression(path) {
I can open a PR to show the change as well.
At work we are migrating from bower to npm, where some dependencies will be in bower_components
and others in node_modules
.
Would you mind if we make modulesDir
an array of component directories to search in? The polymer tools also allowed this.
I can work on a PR for this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.