-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
umd
and es
targets instead of import source
#234
Conversation
Can you test? |
Sure. Right now I can't, but I will do it when I get home. |
Sorry for the delay, I will try to test it in this weekend. |
I tested with rollup and webpack, and everything seems to work. Dependencies used: {
"babel-core": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-external-helpers": "^6.22.0",
"babel-preset-env": "^1.4.0",
"rollup": "^0.41.6",
"rollup-plugin-babel": "^2.7.1",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"webpack": "^2.4.1"
}
var path = require('path')
module.exports = {
entry: './app/main.js',
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'public')
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['env']
}
}
}
]
}
}
import commonjs from 'rollup-plugin-commonjs'
import nodeResolve from 'rollup-plugin-node-resolve'
import babel from 'rollup-plugin-babel'
export default {
entry: 'app/main.js',
format: 'iife',
plugins: [
babel({
exclude: 'node_modules/**',
presets: [
[
'env',
{
modules: false
}
]
],
plugins: [
'external-helpers'
]
}),
nodeResolve({
jsnext: true,
module: true,
main: true,
browser: true
}),
commonjs()
],
dest: 'public/bundle.js'
} |
Still getting the |
package.json
Outdated
@@ -38,8 +41,7 @@ | |||
] | |||
}, | |||
"files": [ | |||
"dist", | |||
"src" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you bring back src
folder? I think some users can rely on this and I don't see reasons break it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Codecov Report
@@ Coverage Diff @@
## master #234 +/- ##
=====================================
Coverage 82% 82%
=====================================
Files 5 5
Lines 150 150
=====================================
Hits 123 123
Misses 27 27 Continue to review full report at Codecov.
|
Any thoughts @evgenyrodionov? |
Any updates on this being merged? |
Any updates on this @evgenyrodionov ? |
@thiamsantos, could you, please, resolve conflicts by rebasing to the latest master? |
@grushetsky conflicts resolved. |
@evgenyrodionov, let's merge this one, do you mind? |
➕ |
Has this been released in 3.0.6? I'm still seeing this issue with version 3.0.6 |
The fix is not currently released.
…On Wed, Aug 29, 2018, 21:42 Gregory ***@***.***> wrote:
Has this been released in 3.0.6? I'm still seeing this issue with version
3.0.6
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABc2qQsrF5qtjwVs9aG5h70l1wPmTeOPks5uVuCvgaJpZM4NffGb>
.
|
@evgenyrodionov Is something preventing a new release ( |
Bump |
That should close #233.
But needs testing to prevent #229 and #231 to happen again.