Skip to content

Commit 8cc99b1

Browse files
committed
allow direct access to browser and node implementations
By default, consumers will get either the node or browser implementation automatically based on their environment. Since these implementations support slightly different options, consumers that want to be portable themselves may want to pick one implementation (probably the browser one, since it is the more portable) and stick to it, regardless of their own environment. This change enables that by allowing direct imports of `babel-plugin-ember-template-compilation/browser` and `babel-plugin-ember-template-compilation/node`, both of which bypass the automatic environment switching.
1 parent 3bfff58 commit 8cc99b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
".": {
2525
"browser": "./src/plugin.js",
2626
"default": "./src/node-main.js"
27-
}
27+
},
28+
"./browser": "./src/plugin.js",
29+
"./node": "./src/node-main.js"
2830
},
2931
"files": [
3032
"src/**/*.js",

0 commit comments

Comments
 (0)